|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.weld.bootstrap.api.helpers.SimpleServiceRegistry
public class SimpleServiceRegistry
A registry for services
| Constructor Summary | |
|---|---|
SimpleServiceRegistry()
|
|
| 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()
|
|
boolean |
equals(java.lang.Object obj)
|
|
protected java.util.Map<java.lang.Class<? extends Service>,Service> |
get()
|
|
|
get(java.lang.Class<S> type)
Retrieve a service implementation |
|
int |
hashCode()
|
|
java.util.Iterator<Service> |
iterator()
|
|
java.lang.String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleServiceRegistry()
| Method Detail |
|---|
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 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 ServiceRegistryprotected java.util.Map<java.lang.Class<? extends Service>,Service> get()
public <S extends Service> S get(java.lang.Class<S> type)
ServiceRegistry
get in interface ServiceRegistryS - the service type
public <S extends Service> boolean contains(java.lang.Class<S> type)
ServiceRegistry
contains in interface ServiceRegistryS - the service type
public void cleanup()
ServiceRegistryService.cleanup() on
each registered service
cleanup in interface ServiceRegistrypublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.util.Iterator<Service> iterator()
iterator in interface java.lang.Iterable<Service>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||