@Module public abstract class BeanAdapter<X,T> extends AbstractBean<T>
| Constructor and Description |
|---|
BeanAdapter(InjectManager manager,
Bean<X> bean) |
| Modifier and Type | Method and Description |
|---|---|
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
|
calculatePassivationId, createObject, getAnnotatedType, getBeanManager, getId, getInjectionTarget, getJavaClass, introspect, isPassivationCapable, toDisplayString, toDisplayStringImpl, toStringpublic BeanAdapter(InjectManager manager, Bean<X> bean)
public abstract T create(CreationalContext<T> env)
Contextualcreate 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 AnnotatedBeangetAnnotated in class AbstractBean<T>public java.util.Set<java.lang.annotation.Annotation> getQualifiers()
BeangetQualifiers in interface Bean<T>getQualifiers in class AbstractBean<T>public java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> getStereotypes()
BeangetStereotypes in interface Bean<T>getStereotypes in class AbstractBean<T>public java.util.Set<InjectionPoint> getInjectionPoints()
BeangetInjectionPoints in interface Bean<T>getInjectionPoints in class AbstractBean<T>public java.lang.String getName()
Beanpublic boolean isAlternative()
BeanisAlternative 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()
public java.util.Set<java.lang.reflect.Type> getTypes()
public java.lang.Class<?> getBeanClass()
BeangetBeanClass in interface Bean<T>getBeanClass in class AbstractBean<T>