|
||||||||||
| 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 | ||
|---|---|---|
|
findByType(Class<T> type)
Finds services in the registry by their type. |
|
|
findByTypeWithName(Class<T> type)
Finds services in the registry by their type. |
|
Object |
lookup(String name)
Deprecated. use lookupByName(String) |
|
|
lookup(String name,
Class<T> type)
Deprecated. use lookupByNameAndType(String, Class) |
|
Object |
lookupByName(String name)
Looks up a service in the registry based purely on name, returning the service or null if it could not be found. |
|
|
lookupByNameAndType(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)
Deprecated. use findByTypeWithName(Class) |
|
| Method Detail |
|---|
Object lookupByName(String name)
name - the name of the service
<T> T lookupByNameAndType(String name,
Class<T> type)
name - the name of the servicetype - the type of the required service
<T> Map<String,T> findByTypeWithName(Class<T> type)
type - the type of the registered services
<T> Set<T> findByType(Class<T> type)
type - the type of the registered services
@Deprecated Object lookup(String name)
lookupByName(String)
name - the name of the service
@Deprecated
<T> T lookup(String name,
Class<T> type)
lookupByNameAndType(String, Class)
name - the name of the servicetype - the type of the required service
@Deprecated <T> Map<String,T> lookupByType(Class<T> type)
findByTypeWithName(Class)
JndiRegistry.
type - the type of the registered services
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||