|
||||||||||
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<T>
@Module public class BeanWrapper<T>
Internal implementation for a Bean
Constructor Summary | |
---|---|
BeanWrapper(InjectManager manager,
Bean<T> bean)
|
Method Summary | |
---|---|
T |
create(CreationalContext<T> env)
Creates a new instance for the Contextual's type. |
void |
destroy(T instance,
CreationalContext<T> env)
Destroys an instance for the Contextual's type. |
Methods inherited from class com.caucho.config.inject.BeanAdapter |
---|
getAnnotated, getBean, getBeanClass, getInjectionPoints, getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative, isNullable |
Methods inherited from class com.caucho.config.inject.AbstractBean |
---|
calculatePassivationId, createObject, getAnnotatedType, getBeanManager, getId, getInjectionTarget, getJavaClass, introspect, isPassivationCapable, toDisplayString, toDisplayStringImpl, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BeanWrapper(InjectManager manager, Bean<T> bean)
Method Detail |
---|
public T create(CreationalContext<T> env)
Contextual
create
in interface Contextual<T>
create
in class BeanAdapter<T,T>
env
- the creation context used to support circular
references.
public void destroy(T instance, CreationalContext<T> env)
Contextual
@Disposal
method
@PreDestroy
methods
destroy
in interface Contextual<T>
destroy
in class BeanAdapter<T,T>
instance
- the instance to destroy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |