|
||||||||||
| 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(Class<S> type,
S service)
Add a service |
|
void |
addAll(Collection<Map.Entry<Class<? extends Service>,Service>> services)
Add services |
|
void |
cleanup()
Clear up the services registered, by calling Service.cleanup() on
each registered service |
|
|
contains(Class<S> type)
Check if a service is registered |
|
Set<Map.Entry<Class<? extends Service>,Service>> |
entrySet()
|
|
|
get(Class<S> type)
Retrieve a service implementation |
|
| Methods inherited from interface java.lang.Iterable |
|---|
iterator |
| Method Detail |
|---|
<S extends Service> void add(Class<S> type,
S service)
S - the service type to addserviceType - the service type to addservice - the service implementationServicevoid addAll(Collection<Map.Entry<Class<? extends Service>,Service>> services)
services - Set<Map.Entry<Class<? extends Service>,Service>> entrySet()
<S extends Service> S get(Class<S> type)
S - the service typeserviceType - the service type
<S extends Service> boolean contains(Class<S> type)
S - the service typeserviceType - the service type
void cleanup()
Service.cleanup() on
each registered service
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||