|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.config.inject.AbstractBean<T>
com.caucho.config.inject.BeanAdapter<T,T>
com.caucho.config.inject.BeanWrapper<X>
com.caucho.config.xml.XmlBean<X>
@Module public class XmlBean<X>
Internal implementation for a Bean
Constructor Summary | |
---|---|
XmlBean(ManagedBeanImpl<X> bean,
XmlInjectionTarget<X> injectionTarget)
|
Method Summary | |
---|---|
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. |
Methods inherited from class com.caucho.config.inject.BeanWrapper |
---|
destroy |
Methods inherited from class com.caucho.config.inject.BeanAdapter |
---|
getBeanClass, getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative, isNullable |
Methods inherited from class com.caucho.config.inject.AbstractBean |
---|
calculatePassivationId, createObject, getBeanManager, getId, getJavaClass, introspect, isPassivationCapable, toDisplayString, toDisplayStringImpl, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.enterprise.inject.spi.PassivationCapable |
---|
getId |
Constructor Detail |
---|
public XmlBean(ManagedBeanImpl<X> bean, XmlInjectionTarget<X> injectionTarget)
Method Detail |
---|
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
produce
in interface Producer<X>
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 void dispose(X instance)
dispose
in interface Producer<X>
public java.util.Set<InjectionPoint> getInjectionPoints()
getInjectionPoints
in interface Bean<X>
getInjectionPoints
in interface Producer<X>
getInjectionPoints
in class BeanAdapter<X,X>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |