| Constructor and Description |
|---|
CdiBeanRegistry() |
| Modifier and Type | Method and Description |
|---|---|
<T> java.util.Set<T> |
findByType(java.lang.Class<T> type)
Finds services in the registry by their type.
|
<T> java.util.Map<java.lang.String,T> |
findByTypeWithName(java.lang.Class<T> type)
Finds services in the registry by their type.
|
java.lang.Object |
lookup(java.lang.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(java.lang.String name,
java.lang.Class<T> type)
Looks up a service in the registry, returning the service or null if it could not be found.
|
java.lang.Object |
lookupByName(java.lang.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(java.lang.String name,
java.lang.Class<T> type)
Looks up a service in the registry, returning the service or null if it could not be found.
|
<T> java.util.Map<java.lang.String,T> |
lookupByType(java.lang.Class<T> type)
Looks up services in the registry by their type.
|
java.lang.String |
toString() |
public java.lang.Object lookupByName(java.lang.String name)
RegistrylookupByName in interface Registryname - the name of the servicepublic <T> T lookupByNameAndType(java.lang.String name,
java.lang.Class<T> type)
RegistrylookupByNameAndType in interface Registryname - the name of the servicetype - the type of the required servicepublic <T> java.util.Map<java.lang.String,T> findByTypeWithName(java.lang.Class<T> type)
RegistryfindByTypeWithName in interface Registrytype - the type of the registered servicespublic <T> java.util.Set<T> findByType(java.lang.Class<T> type)
RegistryfindByType in interface Registrytype - the type of the registered servicespublic java.lang.Object lookup(java.lang.String name)
Registrypublic <T> T lookup(java.lang.String name,
java.lang.Class<T> type)
Registrypublic <T> java.util.Map<java.lang.String,T> lookupByType(java.lang.Class<T> type)
RegistryJndiRegistry.lookupByType in interface Registrytype - the type of the registered servicespublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2007-2014 Red Hat, Inc.. All Rights Reserved.