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