|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AsyncBeanManager
Method Summary | ||
---|---|---|
void |
destroyBean(Object ref,
Runnable runnable)
Destroy the bean and all other beans associated with its AsyncCreationalContext . |
|
|
lookupBean(Class<T> type,
Annotation... qualifiers)
Looks up a bean reference based on type and qualifiers. |
|
|
lookupBeans(Class<T> type)
Looks up all beans of the specified type. |
|
|
lookupBeans(Class<T> type,
Annotation... qualifiers)
Looks up a bean reference based on type and qualifiers. |
|
Collection<AsyncBeanDef> |
lookupBeans(String name)
Looks up all beans with the specified bean name as specified by Named . |
Methods inherited from interface org.jboss.errai.ioc.client.container.ClientBeanManager |
---|
addBeanToContext, addDestructionCallback, addProxyReference, destroyAllBeans, destroyBean, getActualBeanReference, isManaged, isProxyReference |
Method Detail |
---|
void destroyBean(Object ref, Runnable runnable)
AsyncCreationalContext
. Because some
destruction activity may be asynchronous, this method accepts a second parameter as a callback to
be notified when the destruction of all the beans has been done.
ref
- the reference to the bean to be destroyed.runnable
- a runnable callback to be called when all the beans have been destroyed.Collection<AsyncBeanDef> lookupBeans(String name)
Named
.
name
- the name of bean to lookup
<T> Collection<AsyncBeanDef<T>> lookupBeans(Class<T> type)
type
- The type of the bean
<T> Collection<AsyncBeanDef<T>> lookupBeans(Class<T> type, Annotation... qualifiers)
type
- The type of the beanqualifiers
- qualifiers to match
<T> AsyncBeanDef<T> lookupBean(Class<T> type, Annotation... qualifiers)
T
- The type of the beantype
- The type of the beanqualifiers
- qualifiers to match
IOCSingletonBean
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.
|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |