|
||||||||||
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<X,T>
com.caucho.ejb.inject.SessionRegistrationBean<X,T>
@Module public class SessionRegistrationBean<X,T>
Internal registration for the EJB.
Constructor Summary | |
---|---|
SessionRegistrationBean(InjectManager beanManager,
AbstractSessionContext<X,T> context,
Bean<X> bean,
BeanName beanName)
|
Method Summary | |
---|---|
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. |
Methods inherited from class com.caucho.config.inject.BeanAdapter |
---|
getAnnotated, getBean, getBeanClass, getInjectionPoints, getScope, getStereotypes, 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 SessionRegistrationBean(InjectManager beanManager, AbstractSessionContext<X,T> context, Bean<X> bean, BeanName beanName)
Method Detail |
---|
public InjectManager getCdiManager()
getCdiManager
in interface InjectEnvironmentBean
public java.lang.String getName()
getName
in interface Bean<T>
getName
in class BeanAdapter<X,T>
public java.util.Set<java.lang.annotation.Annotation> getQualifiers()
Bean
getQualifiers
in interface Bean<T>
getQualifiers
in class BeanAdapter<X,T>
public T create(CreationalContext<T> env)
Contextual
create
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
getTypes
in interface Bean<T>
getTypes
in class BeanAdapter<X,T>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |