|
||||||||||
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.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 ServiceRegistry
S
- the service type to addservice
- the service implementationService
public <S extends Service> S get(java.lang.Class<S> type)
ServiceRegistry
get
in interface ServiceRegistry
S
- the service type
public <S extends Service> boolean contains(java.lang.Class<S> type)
ServiceRegistry
contains
in interface ServiceRegistry
S
- the service type
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |