@Module public abstract class BeanAdapter<X,T> extends AbstractBean<T>
| Constructor and Description |
|---|
BeanAdapter(InjectManager manager,
<any> bean) |
| Modifier and Type | Method and Description |
|---|---|
abstract T |
create(<any> env) |
abstract void |
destroy(T instance,
<any> env) |
Annotated |
getAnnotated() |
protected <any> |
getBean() |
java.lang.Class<?> |
getBeanClass() |
java.util.Set<InjectionPoint> |
getInjectionPoints() |
java.lang.String |
getName() |
java.util.Set<java.lang.annotation.Annotation> |
getQualifiers() |
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() |
java.util.Set<java.lang.reflect.Type> |
getTypes()
Returns the types that the bean exports for bindings.
|
boolean |
isAlternative() |
boolean |
isNullable()
Returns true if the bean can be null
|
calculatePassivationId, createObject, getAnnotatedType, getBeanManager, getId, getInjectionTarget, getJavaClass, introspect, isPassivationCapable, toDisplayString, toDisplayStringImpl, toStringpublic BeanAdapter(InjectManager manager, <any> bean)
protected <any> getBean()
public abstract T create(<any> env)
create in class AbstractBean<T>public abstract void destroy(T instance, <any> env)
destroy in class AbstractBean<T>public Annotated getAnnotated()
getAnnotated in interface AnnotatedBeangetAnnotated in class AbstractBean<T>public java.util.Set<java.lang.annotation.Annotation> getQualifiers()
getQualifiers in class AbstractBean<T>public java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> getStereotypes()
getStereotypes in class AbstractBean<T>public java.util.Set<InjectionPoint> getInjectionPoints()
getInjectionPoints in class AbstractBean<T>public java.lang.String getName()
getName in class AbstractBean<T>public boolean isAlternative()
isAlternative in class AbstractBean<T>public boolean isNullable()
isNullable in class AbstractBean<T>public java.lang.Class<? extends java.lang.annotation.Annotation> getScope()
getScope in class AbstractBean<T>public java.util.Set<java.lang.reflect.Type> getTypes()
getTypes in class AbstractBean<T>public java.lang.Class<?> getBeanClass()
getBeanClass in class AbstractBean<T>