@Module public class DecoratorBean<T> extends java.lang.Object implements Decorator<T>
| Constructor and Description |
|---|
DecoratorBean(InjectManager beanManager,
java.lang.Class<T> type) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind() |
T |
create(CreationalContext<T> creationalContext)
Creates a new instance for the Contextual's type.
|
void |
destroy(T instance,
CreationalContext<T> env)
Call destroy
|
java.lang.Class<?> |
getBeanClass()
Returns the bean class.
|
java.util.Set<java.lang.reflect.Type> |
getDecoratedTypes()
Returns the types for the decorated
|
InjectionPoint |
getDelegateInjectionPoint() |
java.util.Set<java.lang.annotation.Annotation> |
getDelegateQualifiers()
Returns the bindings for the delegated object
|
java.lang.reflect.Type |
getDelegateType()
Returns the type of the delegated object
|
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 binding types
|
java.lang.Class<? extends java.lang.annotation.Annotation> |
getScope()
Returns the bean's scope
|
java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> |
getStereotypes()
Returns the bean's deployment type
|
java.util.Set<java.lang.reflect.Type> |
getTypes()
Returns the types that the bean implements
|
T |
instantiate()
Instantiate the bean.
|
protected void |
introspect() |
protected void |
introspectBindingTypes(java.lang.annotation.Annotation[] annList) |
boolean |
isAlternative()
Returns true if the bean can be null
|
boolean |
isNullable()
Returns true if the bean can be null
|
java.lang.String |
toString() |
public DecoratorBean(InjectManager beanManager, java.lang.Class<T> type)
public java.util.Set<java.lang.annotation.Annotation> getQualifiers()
getQualifiers in interface Bean<T>public java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> getStereotypes()
getStereotypes in interface Bean<T>public java.lang.String getName()
public boolean isNullable()
isNullable in interface Bean<T>public boolean isAlternative()
isAlternative in interface Bean<T>public java.lang.Class<? extends java.lang.annotation.Annotation> getScope()
public java.util.Set<java.lang.reflect.Type> getTypes()
public java.util.Set<java.lang.reflect.Type> getDecoratedTypes()
getDecoratedTypes in interface Decorator<T>public T create(CreationalContext<T> creationalContext)
Contextualcreate in interface Contextual<T>creationalContext - the creation context used to support circular
references.public java.util.Set<InjectionPoint> getInjectionPoints()
getInjectionPoints in interface Bean<T>public java.lang.Class<?> getBeanClass()
BeangetBeanClass in interface Bean<T>public java.lang.reflect.Type getDelegateType()
getDelegateType in interface Decorator<T>public java.util.Set<java.lang.annotation.Annotation> getDelegateQualifiers()
getDelegateQualifiers in interface Decorator<T>public InjectionPoint getDelegateInjectionPoint()
public void bind()
protected void introspect()
protected void introspectBindingTypes(java.lang.annotation.Annotation[] annList)
public T instantiate()
public void destroy(T instance, CreationalContext<T> env)
destroy in interface Contextual<T>instance - the instance to destroypublic java.lang.String toString()
toString in class java.lang.Object