|
||||||||||
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>
@Module public abstract class BeanAdapter<X,T>
Adapter from an internal bean to an external exposed bean as used by session beans.
Constructor Summary | |
---|---|
BeanAdapter(InjectManager manager,
Bean<X> bean)
|
Method Summary | |
---|---|
abstract T |
create(CreationalContext<T> env)
Creates a new instance for the Contextual's type. |
abstract void |
destroy(T instance,
CreationalContext<T> env)
Destroys an instance for the Contextual's type. |
Annotated |
getAnnotated()
|
protected Bean<X> |
getBean()
|
java.lang.Class<?> |
getBeanClass()
Returns the bean class. |
java.util.Set<InjectionPoint> |
getInjectionPoints()
Returns the set of injection points, for validation. |
java.lang.String |
getName()
Returns the bean's name or null if the bean does not have a primary name. |
java.util.Set<java.lang.annotation.Annotation> |
getQualifiers()
Returns the bean's qualifier annotations. |
java.lang.Class<? extends java.lang.annotation.Annotation> |
getScope()
Returns the bean's scope type. |
java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> |
getStereotypes()
Returns the stereotypes that the bean uses for priority |
java.util.Set<java.lang.reflect.Type> |
getTypes()
Returns the types that the bean exports for bindings. |
boolean |
isAlternative()
True for a disabled alternative. |
boolean |
isNullable()
Returns true if the bean can be null |
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 BeanAdapter(InjectManager manager, Bean<X> bean)
Method Detail |
---|
protected Bean<X> getBean()
public abstract T create(CreationalContext<T> env)
Contextual
create
in interface Contextual<T>
create
in class AbstractBean<T>
env
- the creation context used to support circular
references.
public abstract void destroy(T instance, CreationalContext<T> env)
Contextual
@Disposal
method
@PreDestroy
methods
destroy
in interface Contextual<T>
destroy
in class AbstractBean<T>
instance
- the instance to destroypublic Annotated getAnnotated()
getAnnotated
in interface AnnotatedBean
getAnnotated
in class AbstractBean<T>
public java.util.Set<java.lang.annotation.Annotation> getQualifiers()
Bean
getQualifiers
in interface Bean<T>
getQualifiers
in class AbstractBean<T>
public java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> getStereotypes()
Bean
getStereotypes
in interface Bean<T>
getStereotypes
in class AbstractBean<T>
public java.util.Set<InjectionPoint> getInjectionPoints()
Bean
getInjectionPoints
in interface Bean<T>
getInjectionPoints
in class AbstractBean<T>
public java.lang.String getName()
Bean
getName
in interface Bean<T>
getName
in class AbstractBean<T>
public boolean isAlternative()
Bean
isAlternative
in interface Bean<T>
isAlternative
in class AbstractBean<T>
public boolean isNullable()
isNullable
in interface Bean<T>
isNullable
in class AbstractBean<T>
public java.lang.Class<? extends java.lang.annotation.Annotation> getScope()
getScope
in interface Bean<T>
getScope
in class AbstractBean<T>
public java.util.Set<java.lang.reflect.Type> getTypes()
getTypes
in interface Bean<T>
getTypes
in class AbstractBean<T>
public java.lang.Class<?> getBeanClass()
Bean
getBeanClass
in interface Bean<T>
getBeanClass
in class AbstractBean<T>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |