| Constructor and Description |
|---|
CdiBeanRegistry() |
| Modifier and Type | Method and Description |
|---|---|
<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.
|
String |
toString() |
public Object lookupByName(String name)
RegistrylookupByName in interface Registryname - the name of the servicepublic <T> T lookupByNameAndType(String name, Class<T> type)
RegistrylookupByNameAndType in interface Registryname - the name of the servicetype - the type of the required 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.