|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.weld.bootstrap.api.helpers.ForwardingServiceRegistry
public abstract class ForwardingServiceRegistry
| Constructor Summary | |
|---|---|
ForwardingServiceRegistry()
|
|
| 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 |
|
protected abstract ServiceRegistry |
delegate()
|
|
java.util.Set<java.util.Map.Entry<java.lang.Class<? extends Service>,Service>> |
entrySet()
|
|
|
get(java.lang.Class<S> type)
Retrieve a service implementation |
|
java.util.Iterator<Service> |
iterator()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ForwardingServiceRegistry()
| Method Detail |
|---|
protected abstract ServiceRegistry delegate()
public <S extends Service> void add(java.lang.Class<S> type,
S service)
ServiceRegistry
add in interface ServiceRegistryS - the service type to addservice - the service implementationServicepublic <S extends Service> boolean contains(java.lang.Class<S> type)
ServiceRegistry
contains in interface ServiceRegistryS - the service type
public <S extends Service> S get(java.lang.Class<S> type)
ServiceRegistry
get in interface ServiceRegistryS - the service type
public java.util.Iterator<Service> iterator()
iterator in interface java.lang.Iterable<Service>public void addAll(java.util.Collection<java.util.Map.Entry<java.lang.Class<? extends Service>,Service>> services)
ServiceRegistry
addAll in interface ServiceRegistrypublic java.util.Set<java.util.Map.Entry<java.lang.Class<? extends Service>,Service>> entrySet()
entrySet in interface ServiceRegistrypublic void cleanup()
ServiceRegistryService.cleanup() on
each registered service
cleanup in interface ServiceRegistry
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||