Errai 3.0.1-SNAPSHOT

org.jboss.errai.ioc.client.container.async
Class AsyncDependentBean<T>

java.lang.Object
  extended by org.jboss.errai.ioc.client.container.async.AbstractAsyncBean<T>
      extended by 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

Field Summary
protected  AsyncBeanManagerImpl beanManager
           
protected  AsyncBeanProvider<T> beanProvider
           
 
Fields inherited from class org.jboss.errai.ioc.client.container.async.AbstractAsyncBean
beanType, concrete, name, qualifiers, type
 
Constructor Summary
protected AsyncDependentBean(AsyncBeanManagerImpl beanManager, Class<T> type, Class<?> beanType, Annotation[] qualifiers, String name, boolean concrete, AsyncBeanProvider<T> beanProvider, Class<Object> beanActivatorType)
           
 
Method Summary
 void getInstance(CreationalCallback<T> callback)
          Returns an instance of the bean within the active scope.
 void getInstance(CreationalCallback<T> callback, AsyncCreationalContext context)
          Returns an instance of the bean within the active scope, using the specified SimpleCreationalContext.
 Class<? extends Annotation> getScope()
          Returns the scope of the bean.
 boolean isActivated()
          Returns true if the bean is activated.
static
<T> AsyncBeanDef<T>
newBean(AsyncBeanManagerImpl beanManager, Class<T> type, Class<?> beanType, Annotation[] qualifiers, String name, boolean concrete, AsyncBeanProvider<T> provider, Class<Object> beanActivatorType)
           
 void newInstance(CreationalCallback<T> callback)
          Returns a new instance of the bean.
 String toString()
           
 
Methods inherited from class org.jboss.errai.ioc.client.container.async.AbstractAsyncBean
getBeanClass, getName, getQualifiers, getType, isConcrete, matches
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

beanManager

protected final AsyncBeanManagerImpl beanManager

beanProvider

protected final AsyncBeanProvider<T> beanProvider
Constructor Detail

AsyncDependentBean

protected AsyncDependentBean(AsyncBeanManagerImpl beanManager,
                             Class<T> type,
                             Class<?> beanType,
                             Annotation[] qualifiers,
                             String name,
                             boolean concrete,
                             AsyncBeanProvider<T> beanProvider,
                             Class<Object> beanActivatorType)
Method Detail

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.

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.