|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ServiceRegistry
A service registry
Method Summary | ||
---|---|---|
|
add(java.lang.Class<S> type,
S service)
Add a service to bootstrap |
|
|
contains(java.lang.Class<S> type)
Check if a service is registered |
|
|
get(java.lang.Class<S> type)
Retrieve a service implementation |
Method Detail |
---|
<S extends Service> void add(java.lang.Class<S> type, S service)
S
- the service type to addserviceType
- the service type to addservice
- the service implementationService
<S extends Service> S get(java.lang.Class<S> type)
S
- the service typeserviceType
- the service type
<S extends Service> boolean contains(java.lang.Class<S> type)
S
- the service typeserviceType
- the service type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |