@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.
|
destroygetBeanClass, getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative, isNullablecalculatePassivationId, createObject, getBeanManager, getId, getJavaClass, introspect, isPassivationCapable, toDisplayString, toDisplayStringImpl, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetIdpublic XmlBean(ManagedBeanImpl<X> bean, XmlInjectionTarget<X> injectionTarget)
public ManagedBeanImpl<X> getBean()
getBean in class BeanAdapter<X,X>public Annotated getAnnotated()
getAnnotated in interface AnnotatedBeangetAnnotated 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)
Contextualcreate in interface Contextual<X>create in class BeanWrapper<X>env - the creation context used to support circular
references.public X produce(CreationalContext<X> context)
Producerpublic void inject(X instance, CreationalContext<X> env)
InjectionTargetinject in interface InjectionTarget<X>public void postConstruct(X instance)
InjectionTargetpostConstruct 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>