|
||||||||||
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 ServiceRegistry
S
- the service type to addservice
- the service implementationService
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
protected Map<Class<? extends Service>,Service> get()
public <S extends Service> S get(Class<S> type)
ServiceRegistry
get
in interface ServiceRegistry
S
- the service type
public <S extends Service> boolean contains(Class<S> type)
ServiceRegistry
contains
in interface ServiceRegistry
S
- the service type
public void cleanup()
ServiceRegistry
Service.cleanup()
on
each registered service
cleanup
in interface ServiceRegistry
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public Iterator<Service> iterator()
iterator
in interface Iterable<Service>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |