@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, isNullablecalculatePassivationId, createObject, getAnnotatedType, getBeanManager, getId, getInjectionTarget, getJavaClass, introspect, isPassivationCapable, toDisplayString, toDisplayStringImpl, toStringpublic BeanWrapper(InjectManager manager, Bean<T> bean)
public T create(CreationalContext<T> env)
Contextualcreate 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