|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Registry
Represents a service registry which may be implemented via a Spring ApplicationContext, via JNDI, a simple Map or the OSGi Service Registry
Method Summary | ||
---|---|---|
Object |
lookup(String name)
Looks up a service in the registry based purely on name, returning the service or null if it could not be found. |
|
|
lookup(String name,
Class<T> type)
Looks up a service in the registry, returning the service or null if it could not be found. |
|
|
lookupByType(Class<T> type)
Looks up services in the registry by their type. |
Method Detail |
---|
Object lookup(String name)
name
- the name of the service
<T> T lookup(String name, Class<T> type)
name
- the name of the servicetype
- the type of the required service
<T> Map<String,T> lookupByType(Class<T> type)
JndiRegistry
.
type
- the type of the registered services
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |