@Module public class XmlBean<X> extends BeanWrapper<X> implements InjectionTarget<X>, ScopeAdapterBean<X>, PassivationCapable
Constructor and Description |
---|
XmlBean(ManagedBeanImpl<X> bean,
XmlInjectionTarget<X> injectionTarget) |
Modifier and Type | Method and Description |
---|---|
X |
create(CreationalContext<X> env)
Creates a new instance for the Contextual's type.
|
void |
dispose(X instance)
Call destroy
|
Annotated |
getAnnotated() |
AnnotatedType<X> |
getAnnotatedType() |
ManagedBeanImpl<X> |
getBean() |
java.util.Set<InjectionPoint> |
getInjectionPoints()
Returns the injection points.
|
InjectionTarget<X> |
getInjectionTarget() |
X |
getScopeAdapter(Bean<?> topBean,
CreationalContextImpl<X> context) |
void |
inject(X instance,
CreationalContext<X> env)
Inject the bean.
|
void |
postConstruct(X instance)
PostConstruct initialization
|
void |
preDestroy(X instance)
Call destroy
|
X |
produce(CreationalContext<X> context)
Instantiate the bean.
|
destroy
getBeanClass, getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative, isNullable
calculatePassivationId, createObject, getBeanManager, getId, getJavaClass, introspect, isPassivationCapable, toDisplayString, toDisplayStringImpl, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getId
public XmlBean(ManagedBeanImpl<X> bean, XmlInjectionTarget<X> injectionTarget)
public ManagedBeanImpl<X> getBean()
getBean
in class BeanAdapter<X,X>
public Annotated getAnnotated()
getAnnotated
in interface AnnotatedBean
getAnnotated
in class BeanAdapter<X,X>
public AnnotatedType<X> getAnnotatedType()
getAnnotatedType
in class AbstractBean<X>
public InjectionTarget<X> getInjectionTarget()
getInjectionTarget
in class AbstractBean<X>
public X getScopeAdapter(Bean<?> topBean, CreationalContextImpl<X> context)
getScopeAdapter
in interface ScopeAdapterBean<X>
public X create(CreationalContext<X> env)
Contextual
create
in interface Contextual<X>
create
in class BeanWrapper<X>
env
- the creation context used to support circular
references.public X produce(CreationalContext<X> context)
Producer
public void inject(X instance, CreationalContext<X> env)
InjectionTarget
inject
in interface InjectionTarget<X>
public void postConstruct(X instance)
InjectionTarget
postConstruct
in interface InjectionTarget<X>
public void preDestroy(X instance)
preDestroy
in interface InjectionTarget<X>
public java.util.Set<InjectionPoint> getInjectionPoints()
getInjectionPoints
in interface Bean<X>
getInjectionPoints
in interface Producer<X>
getInjectionPoints
in class BeanAdapter<X,X>