org.jboss.errai.ioc.client.container.async
Class AsyncSingletonBean<T>
java.lang.Object
org.jboss.errai.ioc.client.container.async.AbstractAsyncBean<T>
org.jboss.errai.ioc.client.container.async.AsyncDependentBean<T>
org.jboss.errai.ioc.client.container.async.AsyncSingletonBean<T>
- All Implemented Interfaces:
- AsyncBeanDef<T>
public class AsyncSingletonBean<T>
- extends AsyncDependentBean<T>
- Author:
- Mike Brock
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
|
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()
|
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 beanqualifiers
- The qualifiers of the bean.name
- The name of the beaninstance
- 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>
Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.