public class DecoratorImpl<T> extends ManagedBean<T> implements WeldDecorator<T>
annotatedType, enhancedAnnotatedItemtypebeanManager| Modifier | Constructor and Description |
|---|---|
protected |
DecoratorImpl(BeanAttributes<T> attributes,
EnhancedAnnotatedType<T> type,
BeanManagerImpl beanManager) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<java.lang.reflect.Type> |
getDecoratedTypes()
Obtains the decorated types.
|
InvokableAnnotatedMethod<?> |
getDecoratorMethod(java.lang.reflect.Method method)
Returns the decorated method that can decorate a particular method, if one exists
Such a method must be implement one of the decorated type methods, and can be parametrized
|
WeldInjectionPointAttributes<?,?> |
getDelegateInjectionPoint() |
java.util.Set<java.lang.annotation.Annotation> |
getDelegateQualifiers()
Obtains the qualifiers of the delegate injection
point.
|
java.lang.reflect.Type |
getDelegateType()
Obtains the type of the delegate injection point.
|
protected void |
initDecoratedTypes() |
protected void |
initDelegateBindings() |
protected void |
initDelegateInjectionPoint() |
protected void |
initDelegateType() |
void |
internalInitialize(BeanDeployerEnvironment environment)
Initializes the bean and its metadata
|
static <T> DecoratorImpl<T> |
of(BeanAttributes<T> attributes,
EnhancedAnnotatedType<T> clazz,
BeanManagerImpl beanManager)
Creates a decorator bean
|
java.lang.String |
toString() |
checkBeanImplementation, checkType, create, destroy, initializeAfterBeanDiscovery, isInterceptionCandidate, isPassivationCapableBean, isPassivationCapableDependency, isProxyable, setProducer, specializecleanupAfterBoot, getAnnotated, getDecorators, getEnhancedAnnotated, getInjectionPoints, getInjectionTarget, getInterceptors, getProducer, hasDecorators, hasInterceptors, initType, preSpecialize, setInjectionTarget, setProducercheckSpecialization, getSpecializedBeans, getType, isDependent, isProxyRequired, isSpecializing, postSpecialize, preInitializegetBeanClass, getBeanManager, getContextualInstanceStrategy, getQualifierInstances, initialize, isNormalScoped, setAttributesattributes, equals, getId, getIdentifier, hashCode, isNullable, unwrapgetName, getQualifiers, getScope, getStereotypes, getTypes, isAlternativeclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetEnhancedAnnotatedgetBeanClass, getInjectionPoints, isNullablecreate, destroygetName, getQualifiers, getScope, getStereotypes, getTypes, isAlternativegetIdprotected DecoratorImpl(BeanAttributes<T> attributes, EnhancedAnnotatedType<T> type, BeanManagerImpl beanManager)
public static <T> DecoratorImpl<T> of(BeanAttributes<T> attributes, EnhancedAnnotatedType<T> clazz, BeanManagerImpl beanManager)
T - The typeclazz - The classbeanManager - the current managerpublic void internalInitialize(BeanDeployerEnvironment environment)
AbstractClassBeaninternalInitialize in class ManagedBean<T>protected void initDecoratedTypes()
protected void initDelegateInjectionPoint()
protected void initDelegateBindings()
protected void initDelegateType()
public java.util.Set<java.lang.annotation.Annotation> getDelegateQualifiers()
DecoratorObtains the qualifiers of the delegate injection point.
getDelegateQualifiers in interface Decorator<T>public java.lang.reflect.Type getDelegateType()
DecoratorObtains the type of the delegate injection point.
getDelegateType in interface Decorator<T>public java.util.Set<java.lang.reflect.Type> getDecoratedTypes()
DecoratorObtains the decorated types.
getDecoratedTypes in interface Decorator<T>public WeldInjectionPointAttributes<?,?> getDelegateInjectionPoint()
public InvokableAnnotatedMethod<?> getDecoratorMethod(java.lang.reflect.Method method)
WeldDecoratorgetDecoratorMethod in interface WeldDecorator<T>public java.lang.String toString()
toString in class ManagedBean<T>Copyright © 2015. All Rights Reserved.