@Module public class BeanWrapper<T> extends BeanAdapter<T,T>
Constructor and Description |
---|
BeanWrapper(InjectManager manager,
Bean<T> bean) |
Modifier and Type | Method and Description |
---|---|
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.
|
getAnnotated, getBean, getBeanClass, getInjectionPoints, getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative, isNullable
calculatePassivationId, createObject, getAnnotatedType, getBeanManager, getId, getInjectionTarget, getJavaClass, introspect, isPassivationCapable, toDisplayString, toDisplayStringImpl, toString
public BeanWrapper(InjectManager manager, Bean<T> bean)
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