|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ServiceLocator
Locates services by their type
| Method Summary | ||
|---|---|---|
|
findSingletonService(java.lang.Class<T> serviceClass)
Searches for singleton service of specified type |
|
|
getServices(java.lang.Class<T> serivceClass)
Searches for all bean instances of type |
|
|
getSingletonService(java.lang.Class<T> serviceClass)
Searches for singleton service of specified type |
|
| Method Detail |
|---|
@NotNull
<T> T getSingletonService(@NotNull
java.lang.Class<T> serviceClass)
throws ServiceNotFoundException
serviceClass - type of the service
ServiceNotFoundException - if specified service was not found or if more than one service found
@Nullable
<T> T findSingletonService(@NotNull
java.lang.Class<T> serviceClass)
serviceClass - type of the service
java.lang.RuntimeException - if more than one service found
@NotNull
<T> java.util.Collection<T> getServices(@NotNull
java.lang.Class<T> serivceClass)
serivceClass - - type to search
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||