@Module public class DecoratorBean<T> extends java.lang.Object
| Constructor and Description |
|---|
DecoratorBean(InjectManager beanManager,
java.lang.Class<T> type) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind() |
T |
create(<any> creationalContext) |
void |
destroy(T instance,
<any> env)
Call destroy
|
java.lang.Class<?> |
getBeanClass() |
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()
public java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> getStereotypes()
public java.lang.String getName()
public boolean isNullable()
public boolean isAlternative()
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()
public T create(<any> creationalContext)
public java.util.Set<InjectionPoint> getInjectionPoints()
public java.lang.Class<?> getBeanClass()
public java.lang.reflect.Type getDelegateType()
public java.util.Set<java.lang.annotation.Annotation> getDelegateQualifiers()
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, <any> env)
public java.lang.String toString()
toString in class java.lang.Object