@Module public class SessionRegistrationBean<X,T> extends BeanAdapter<X,T> implements InjectEnvironmentBean
| Constructor and Description |
|---|
SessionRegistrationBean(InjectManager beanManager,
AbstractSessionContext<X,T> context,
Bean<X> bean,
BeanName beanName) |
| 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> cxt)
Destroys an instance for the Contextual's type.
|
InjectManager |
getCdiManager() |
java.lang.String |
getName()
The registration bean is not registered by name
|
java.util.Set<java.lang.annotation.Annotation> |
getQualifiers()
Returns the bean's qualifier annotations.
|
java.util.Set<java.lang.reflect.Type> |
getTypes()
Returns the types that the bean exports for bindings.
|
getAnnotated, getBean, getBeanClass, getInjectionPoints, getScope, getStereotypes, isAlternative, isNullablecalculatePassivationId, createObject, getAnnotatedType, getBeanManager, getId, getInjectionTarget, getJavaClass, introspect, isPassivationCapable, toDisplayString, toDisplayStringImpl, toStringpublic SessionRegistrationBean(InjectManager beanManager, AbstractSessionContext<X,T> context, Bean<X> bean, BeanName beanName)
public InjectManager getCdiManager()
getCdiManager in interface InjectEnvironmentBeanpublic java.lang.String getName()
public java.util.Set<java.lang.annotation.Annotation> getQualifiers()
BeangetQualifiers in interface Bean<T>getQualifiers in class BeanAdapter<X,T>public T create(CreationalContext<T> env)
Contextualcreate in interface Contextual<T>create in class BeanAdapter<X,T>env - the creation context used to support circular
references.public void destroy(T instance, CreationalContext<T> cxt)
Contextual@Disposal method
@PreDestroy methods
destroy in interface Contextual<T>destroy in class BeanAdapter<X,T>instance - the instance to destroypublic java.util.Set<java.lang.reflect.Type> getTypes()
BeanAdapter