@Module public class ManagedBeanImpl<X> extends AbstractIntrospectedBean<X> implements ScopeAdapterBean<X>, ScheduleBean
CURRENT_ANN
Constructor and Description |
---|
ManagedBeanImpl(InjectManager injectManager,
AnnotatedType<X> beanType,
boolean isSessionBean) |
ManagedBeanImpl(InjectManager webBeans,
AnnotatedType<X> beanType,
InjectionTarget<X> injectionTarget) |
Modifier and Type | Method and Description |
---|---|
X |
create(CreationalContext<X> context)
Creates a new instance of the component.
|
X |
createDependent(CreationalContext<X> env)
Creates a new instance of the component.
|
void |
destroy(X instance,
CreationalContext<X> cxt)
Call pre-destroy
|
void |
dispose(X instance)
Call post-construct
|
AnnotatedType<X> |
getAnnotatedType() |
java.util.Set<InjectionPoint> |
getInjectionPoints()
Returns the set of injection points, for validation.
|
InjectionTarget<X> |
getInjectionTarget() |
java.util.Set<ObserverMethodImpl<X,?>> |
getObserverMethods()
Returns the observer methods
|
java.lang.Object |
getScopeAdapter() |
X |
getScopeAdapter(Bean<?> topBean,
CreationalContextImpl<X> cxt) |
void |
introspect() |
protected void |
introspect(AnnotatedType<X> beanType)
Called for implicit introspection.
|
void |
introspectProduces() |
protected boolean |
isNormalScope() |
protected boolean |
isProxiedScope() |
void |
scheduleTimers(java.lang.Object value) |
void |
setInjectionTarget(InjectionTarget<X> target) |
boolean |
validate() |
bind, getAnnotated, getBaseType, getBeanClass, getDefaultName, getId, getJavaClass, getName, getNamedValue, getQualifiers, getScope, getStereotypes, getTargetClass, getTargetName, getTargetSimpleName, getTargetType, getTypes, introspect, introspectDefault, introspectName, introspectQualifiers, introspectScope, introspectSpecializes, introspectStereotypes, isAlternative, isNullable, isPassivating, isPassivationCapable, setPassivating, setPassivationId, toDebugString
calculatePassivationId, createObject, getBeanManager, toDisplayString, toDisplayStringImpl, toString
public ManagedBeanImpl(InjectManager injectManager, AnnotatedType<X> beanType, boolean isSessionBean)
public ManagedBeanImpl(InjectManager webBeans, AnnotatedType<X> beanType, InjectionTarget<X> injectionTarget)
public AnnotatedType<X> getAnnotatedType()
getAnnotatedType
in class AbstractBean<X>
public InjectionTarget<X> getInjectionTarget()
getInjectionTarget
in class AbstractBean<X>
public void setInjectionTarget(InjectionTarget<X> target)
protected boolean isNormalScope()
isNormalScope
in class AbstractIntrospectedBean<X>
public X create(CreationalContext<X> context)
create
in interface Contextual<X>
create
in class AbstractIntrospectedBean<X>
context
- the creation context used to support circular
references.public X createDependent(CreationalContext<X> env)
public X getScopeAdapter(Bean<?> topBean, CreationalContextImpl<X> cxt)
getScopeAdapter
in interface ScopeAdapterBean<X>
protected boolean isProxiedScope()
public java.lang.Object getScopeAdapter()
public java.util.Set<InjectionPoint> getInjectionPoints()
getInjectionPoints
in interface Bean<X>
getInjectionPoints
in class AbstractIntrospectedBean<X>
public boolean validate()
public java.util.Set<ObserverMethodImpl<X,?>> getObserverMethods()
public void dispose(X instance)
dispose
in class AbstractIntrospectedBean<X>
public void destroy(X instance, CreationalContext<X> cxt)
destroy
in interface Contextual<X>
destroy
in class AbstractIntrospectedBean<X>
instance
- the instance to destroypublic void introspect()
introspect
in class AbstractIntrospectedBean<X>
protected void introspect(AnnotatedType<X> beanType)
public void introspectProduces()
public void scheduleTimers(java.lang.Object value)
scheduleTimers
in interface ScheduleBean