|
||||||||||
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(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 |
|
protected abstract ServiceRegistry |
delegate()
|
|
Set<Map.Entry<Class<? extends Service>,Service>> |
entrySet()
|
|
|
get(Class<S> type)
Retrieve a service implementation |
|
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(Class<S> type, S service)
ServiceRegistry
add
in interface ServiceRegistry
S
- the service type to addservice
- the service implementationService
public <S extends Service> boolean contains(Class<S> type)
ServiceRegistry
contains
in interface ServiceRegistry
S
- the service type
public <S extends Service> S get(Class<S> type)
ServiceRegistry
get
in interface ServiceRegistry
S
- the service type
public Iterator<Service> iterator()
iterator
in interface Iterable<Service>
public void addAll(Collection<Map.Entry<Class<? extends Service>,Service>> services)
ServiceRegistry
addAll
in interface ServiceRegistry
public Set<Map.Entry<Class<? extends Service>,Service>> entrySet()
entrySet
in interface ServiceRegistry
public void cleanup()
ServiceRegistry
Service.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 |