Errai 3.0.1-SNAPSHOT

org.jboss.errai.ioc.client.container.async
Class AsyncSingletonBean<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>
          extended by org.jboss.errai.ioc.client.container.async.AsyncSingletonBean<T>
All Implemented Interfaces:
AsyncBeanDef<T>

public class AsyncSingletonBean<T>
extends AsyncDependentBean<T>

Author:
Mike Brock

Field Summary
 
Fields inherited from class org.jboss.errai.ioc.client.container.async.AsyncDependentBean
beanManager, beanProvider
 
Fields inherited from class org.jboss.errai.ioc.client.container.async.AbstractAsyncBean
beanType, concrete, name, qualifiers, type
 
Method Summary
 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.
static
<T> AsyncBeanDef<T>
newBean(AsyncBeanManagerImpl beanManager, Class<T> type, Class<?> beanType, Annotation[] qualifiers, String name, boolean concrete, AsyncBeanProvider<T> callback, T instance, Class<Object> beanActivatorType)
          Creates a new IOC Bean reference
 String toString()
           
 
Methods inherited from class org.jboss.errai.ioc.client.container.async.AsyncDependentBean
getInstance, isActivated, newBean, newInstance
 
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
 

Method Detail

newBean

public static <T> AsyncBeanDef<T> newBean(AsyncBeanManagerImpl beanManager,
                                          Class<T> type,
                                          Class<?> beanType,
                                          Annotation[] qualifiers,
                                          String name,
                                          boolean concrete,
                                          AsyncBeanProvider<T> callback,
                                          T instance,
                                          Class<Object> beanActivatorType)
Creates a new IOC Bean reference

Type Parameters:
T - The type of the bean
Parameters:
type - The type of a bean
qualifiers - The qualifiers of the bean.
name - The name of the bean
instance - The instance of the bean.
activator - The bean activator to use, may be null.
Returns:
A new instance of IOCSingletonBean

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.

Specified by:
getInstance in interface AsyncBeanDef<T>
Overrides:
getInstance in class AsyncDependentBean<T>

getScope

public Class<? extends Annotation> getScope()
Description copied from interface: AsyncBeanDef
Returns the scope of the bean.

Specified by:
getScope in interface AsyncBeanDef<T>
Overrides:
getScope in class AsyncDependentBean<T>

toString

public String toString()
Overrides:
toString in class AsyncDependentBean<T>

Errai 3.0.1-SNAPSHOT

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