public interface SyncBeanManager extends ClientBeanManager
Modifier and Type | Method and Description |
---|---|
<T> IOCBeanDef<T> |
lookupBean(Class<T> type,
Annotation... qualifiers)
Looks up a bean reference based on type and qualifiers.
|
<T> Collection<IOCBeanDef<T>> |
lookupBeans(Class<T> type)
Looks up all beans of the specified type.
|
<T> Collection<IOCBeanDef<T>> |
lookupBeans(Class<T> type,
Annotation... qualifiers)
Looks up a bean reference based on type and qualifiers.
|
Collection<IOCBeanDef> |
lookupBeans(String name)
Looks up all beans with the specified bean name as specified by
Named . |
<T> IOCBeanDef<T> |
registerBean(IOCBeanDef<T> bean)
Register a bean with the manager.
|
addBeanToContext, addDestructionCallback, addProxyReference, destroyAllBeans, destroyBean, getActualBeanReference, isManaged, isProxyReference
<T> IOCBeanDef<T> registerBean(IOCBeanDef<T> bean)
bean
- an IOCSingletonBean
referenceCollection<IOCBeanDef> lookupBeans(String name)
Named
.name
- the name of bean to lookup<T> Collection<IOCBeanDef<T>> lookupBeans(Class<T> type)
type
- The type of the bean<T> Collection<IOCBeanDef<T>> lookupBeans(Class<T> type, Annotation... qualifiers)
type
- The type of the beanqualifiers
- qualifiers to match<T> IOCBeanDef<T> lookupBean(Class<T> type, Annotation... qualifiers)
T
- The type of the beantype
- The type of the beanqualifiers
- qualifiers to matchIOCSingletonBean
for the matching type and qualifiers.
Throws an IOCResolutionException
if there is a matching type but none of the
qualifiers match or if more than one bean matches.Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.