| Constructor and Description |
|---|
CompositeRegistry() |
CompositeRegistry(List<Registry> registries) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRegistry(Registry registry) |
<T> Set<T> |
findByType(Class<T> type)
Finds services in the registry by their type.
|
<T> Map<String,T> |
findByTypeWithName(Class<T> type)
Finds services in the registry by their type.
|
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.
|
<T> T |
lookup(String name,
Class<T> type)
Looks up a service in the registry, returning the service or null if it could not be found.
|
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.
|
<T> T |
lookupByNameAndType(String name,
Class<T> type)
Looks up a service in the registry, returning the service or null if it could not be found.
|
<T> Map<String,T> |
lookupByType(Class<T> type)
Looks up services in the registry by their type.
|
public void addRegistry(Registry registry)
public <T> T lookupByNameAndType(String name, Class<T> type)
RegistrylookupByNameAndType in interface Registryname - the name of the servicetype - the type of the required servicepublic Object lookupByName(String name)
RegistrylookupByName in interface Registryname - the name of the servicepublic <T> Map<String,T> findByTypeWithName(Class<T> type)
RegistryfindByTypeWithName in interface Registrytype - the type of the registered servicespublic <T> Set<T> findByType(Class<T> type)
RegistryfindByType in interface Registrytype - the type of the registered servicespublic Object lookup(String name)
Registrypublic <T> T lookup(String name, Class<T> type)
Registrypublic <T> Map<String,T> lookupByType(Class<T> type)
RegistryJndiRegistry.lookupByType in interface Registrytype - the type of the registered servicesCopyright © 2007–2015 The Apache Software Foundation. All rights reserved.