org.jboss.errai.ioc.client.container.async
Class AsyncDependentBean<T>
java.lang.Object
org.jboss.errai.ioc.client.container.async.AbstractAsyncBean<T>
org.jboss.errai.ioc.client.container.async.AsyncDependentBean<T>
- All Implemented Interfaces:
- AsyncBeanDef<T>
- Direct Known Subclasses:
- AsyncSingletonBean
public class AsyncDependentBean<T>
- extends AbstractAsyncBean<T>
- Author:
- Mike Brock
beanManager
protected final AsyncBeanManagerImpl beanManager
beanProvider
protected final AsyncBeanProvider<T> beanProvider
AsyncDependentBean
protected AsyncDependentBean(AsyncBeanManagerImpl beanManager,
Class<T> type,
Class<?> beanType,
Annotation[] qualifiers,
String name,
boolean concrete,
AsyncBeanProvider<T> beanProvider,
Class<Object> beanActivatorType)
newBean
public static <T> AsyncBeanDef<T> newBean(AsyncBeanManagerImpl beanManager,
Class<T> type,
Class<?> beanType,
Annotation[] qualifiers,
String name,
boolean concrete,
AsyncBeanProvider<T> provider,
Class<Object> beanActivatorType)
newInstance
public void newInstance(CreationalCallback<T> callback)
- Description copied from interface:
AsyncBeanDef
- Returns a new instance of the bean. Calling this method overrides the underlying scope and instantiates a new
instance of the bean.
getInstance
public void getInstance(CreationalCallback<T> callback)
- Description copied from interface:
AsyncBeanDef
- Returns an instance of the bean within the active scope.
getInstance
public void getInstance(CreationalCallback<T> callback,
AsyncCreationalContext context)
- Description copied from interface:
AsyncBeanDef
- Returns an instance of the bean within the active scope, using the specified SimpleCreationalContext.
getScope
public Class<? extends Annotation> getScope()
- Description copied from interface:
AsyncBeanDef
- Returns the scope of the bean.
toString
public String toString()
- Overrides:
toString
in class Object
isActivated
public boolean isActivated()
- Description copied from interface:
AsyncBeanDef
- Returns true if the bean is activated. All managed beans are activated by default unless a
BeanActivator
was specified using ActivatedBy
which will be consulted when
invoking this method.
- Returns:
- true if activated, otherwise false.
Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.