public class IOCDependentBean<T> extends AbstractIOCBean<T>
Modifier and Type | Field and Description |
---|---|
protected SyncBeanManagerImpl |
beanManager |
protected BeanProvider<T> |
beanProvider |
beanType, concrete, name, qualifiers, type
Modifier | Constructor and Description |
---|---|
protected |
IOCDependentBean(SyncBeanManagerImpl beanManager,
Class<T> type,
Class<?> beanType,
Annotation[] qualifiers,
String name,
boolean concrete,
BeanProvider<T> beanProvider,
Class<Object> beanActivatorType) |
Modifier and Type | Method and Description |
---|---|
T |
getInstance()
Returns an instance of the bean within the active scope.
|
T |
getInstance(CreationalContext 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> IOCBeanDef<T> |
newBean(SyncBeanManagerImpl beanManager,
Class<T> type,
Class<?> beanType,
Annotation[] qualifiers,
String name,
boolean concrete,
BeanProvider<T> callback,
Class<Object> beanActivatorType) |
T |
newInstance()
Returns a new instance of the bean.
|
getBeanClass, getName, getQualifiers, getType, isConcrete, matches, toString
protected final SyncBeanManagerImpl beanManager
protected final BeanProvider<T> beanProvider
protected IOCDependentBean(SyncBeanManagerImpl beanManager, Class<T> type, Class<?> beanType, Annotation[] qualifiers, String name, boolean concrete, BeanProvider<T> beanProvider, Class<Object> beanActivatorType)
public static <T> IOCBeanDef<T> newBean(SyncBeanManagerImpl beanManager, Class<T> type, Class<?> beanType, Annotation[] qualifiers, String name, boolean concrete, BeanProvider<T> callback, Class<Object> beanActivatorType)
public T newInstance()
IOCBeanDef
public T getInstance()
IOCBeanDef
public T getInstance(CreationalContext context)
IOCBeanDef
public Class<? extends Annotation> getScope()
IOCBeanDef
public boolean isActivated()
IOCBeanDef
BeanActivator
was specified using ActivatedBy
which will be consulted when
invoking this method.Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.