|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.webbeans.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 to bootstrap |
|
|
contains(java.lang.Class<S> type)
Check if a service is registered |
|
boolean |
equals(java.lang.Object obj)
|
|
|
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 <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 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 | |||||||||