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 |
|---|---|
Set<Type> |
getDecoratedTypes()
Obtains the decorated types.
|
InvokableAnnotatedMethod<?> |
getDecoratorMethod(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() |
Set<Annotation> |
getDelegateQualifiers()
Obtains the qualifiers of the delegate injection
point.
|
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
|
String |
toString() |
checkBeanImplementation, checkType, create, destroy, initializeAfterBeanDiscovery, isInterceptionCandidate, isPassivationCapableBean, isPassivationCapableDependency, isProxyable, specializecleanupAfterBoot, getAnnotated, getDecorators, getEnhancedAnnotated, getInjectionPoints, getInjectionTarget, getInterceptors, getProducer, hasDecorators, hasInterceptors, initType, preSpecialize, setInjectionTarget, setProducer, setProducercheckSpecialization, getSpecializedBeans, getType, isDependent, isProxyRequired, isSpecializing, postSpecialize, preInitializegetBeanClass, getBeanManager, getQualifierInstances, initialize, isNormalScopedattributes, equals, getId, getIdentifier, hashCode, isNullable, setAttributes, 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 Set<Annotation> getDelegateQualifiers()
DecoratorObtains the qualifiers of the delegate injection point.
getDelegateQualifiers in interface Decorator<T>public Type getDelegateType()
DecoratorObtains the type of the delegate injection point.
getDelegateType in interface Decorator<T>public Set<Type> getDecoratedTypes()
DecoratorObtains the decorated types.
getDecoratedTypes in interface Decorator<T>public WeldInjectionPointAttributes<?,?> getDelegateInjectionPoint()
public InvokableAnnotatedMethod<?> getDecoratorMethod(Method method)
WeldDecoratorgetDecoratorMethod in interface WeldDecorator<T>public String toString()
toString in class ManagedBean<T>Copyright © 2014. All Rights Reserved.