|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ServiceRegistry
A registry of services
.
Method Summary | ||
---|---|---|
ServiceRegistry |
getParentServiceRegistry()
Retrieve this registry's parent registry. |
|
|
getService(Class<R> serviceRole)
Retrieve a service by role. |
Method Detail |
---|
ServiceRegistry getParentServiceRegistry()
<R extends Service> R getService(Class<R> serviceRole)
BasicServiceInitiator
is registered for
this service role, the service will be initialized and returned.
NOTE: We cannot return <R extends Service<T>>
here because the service might come from the parent...
R
- The service role typeserviceRole
- The service role
UnknownServiceException
- Indicates the service was not known.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |