|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
T - The type of services this provider returnspublic interface ServiceProvider<T extends Service>
A repository of Service instances that can be used to look them up by type.
| Method Summary | ||
|---|---|---|
|
getService(java.lang.Class<U> serviceType)
Looks up the Service of the given serviceType. |
|
|
getServicesOfType(java.lang.Class<U> serviceType)
Looks up all Service instances that are subtypes of the given serviceType supplied. |
|
| Method Detail |
|---|
<U extends T> U getService(java.lang.Class<U> serviceType)
Service of the given serviceType.
There is no guarantee that services returned here will be started.
U - the Service typeserviceType - the class of the service being looked up
T, or null if it couldn't be located
java.lang.IllegalArgumentException - if serviceType is marked with the
PluralService annotationService.start(ServiceProvider)<U extends T> java.util.Collection<U> getServicesOfType(java.lang.Class<U> serviceType)
Service instances that are subtypes of the given serviceType supplied.
This method must be used to retrieves service types marked with the
PluralService annotation.
U - the Service typeserviceType - the class of the service being looked up
serviceType
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||