|
||||||||||
| 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(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()
|
|
boolean |
equals(Object obj)
|
|
protected Map<Class<? extends Service>,Service> |
get()
|
|
|
get(Class<S> type)
Retrieve a service implementation |
|
int |
hashCode()
|
|
Iterator<Service> |
iterator()
|
|
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(Class<S> type,
S service)
ServiceRegistry
add in interface ServiceRegistryS - the service type to addservice - the service implementationServicepublic void addAll(Collection<Map.Entry<Class<? extends Service>,Service>> services)
ServiceRegistry
addAll in interface ServiceRegistrypublic Set<Map.Entry<Class<? extends Service>,Service>> entrySet()
entrySet in interface ServiceRegistryprotected Map<Class<? extends Service>,Service> get()
public <S extends Service> S get(Class<S> type)
ServiceRegistry
get in interface ServiceRegistryS - the service type
public <S extends Service> boolean contains(Class<S> type)
ServiceRegistry
contains in interface ServiceRegistryS - the service type
public void cleanup()
ServiceRegistryService.cleanup() on
each registered service
cleanup in interface ServiceRegistrypublic String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic Iterator<Service> iterator()
iterator in interface Iterable<Service>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||