public class DecoratorImpl<T> extends ManagedBean<T> implements WeldDecorator<T>
annotatedType, enhancedAnnotatedItem
type
beanManager
Modifier | Constructor and Description |
---|---|
protected |
DecoratorImpl(javax.enterprise.inject.spi.BeanAttributes<T> attributes,
EnhancedAnnotatedType<T> type,
BeanManagerImpl beanManager) |
Modifier and Type | Method and Description |
---|---|
Set<Type> |
getDecoratedTypes() |
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() |
Type |
getDelegateType() |
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(javax.enterprise.inject.spi.BeanAttributes<T> attributes,
EnhancedAnnotatedType<T> clazz,
BeanManagerImpl beanManager)
Creates a decorator bean
|
String |
toString() |
checkBeanImplementation, checkType, create, destroy, initializeAfterBeanDiscovery, isInterceptionCandidate, isPassivationCapableBean, isPassivationCapableDependency, isProxyable, specialize
cleanupAfterBoot, getAnnotated, getDecorators, getEnhancedAnnotated, getInjectionPoints, getInjectionTarget, getInterceptors, getProducer, hasDecorators, hasInterceptors, initType, preSpecialize, setInjectionTarget, setProducer, setProducer
checkSpecialization, getSpecializedBeans, getType, isDependent, isProxyRequired, isSpecializing, postSpecialize, preInitialize
getBeanClass, getBeanManager, getQualifierInstances, initialize, isNormalScoped
attributes, equals, getId, getIdentifier, hashCode, isNullable, setAttributes, unwrap
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getEnhancedAnnotated
getBeanClass, getInjectionPoints, isNullable
protected DecoratorImpl(javax.enterprise.inject.spi.BeanAttributes<T> attributes, EnhancedAnnotatedType<T> type, BeanManagerImpl beanManager)
public static <T> DecoratorImpl<T> of(javax.enterprise.inject.spi.BeanAttributes<T> attributes, EnhancedAnnotatedType<T> clazz, BeanManagerImpl beanManager)
T
- The typeclazz
- The classbeanManager
- the current managerpublic void internalInitialize(BeanDeployerEnvironment environment)
AbstractClassBean
internalInitialize
in class ManagedBean<T>
protected void initDecoratedTypes()
protected void initDelegateInjectionPoint()
protected void initDelegateBindings()
protected void initDelegateType()
public Set<Annotation> getDelegateQualifiers()
getDelegateQualifiers
in interface javax.enterprise.inject.spi.Decorator<T>
public Type getDelegateType()
getDelegateType
in interface javax.enterprise.inject.spi.Decorator<T>
public Set<Type> getDecoratedTypes()
getDecoratedTypes
in interface javax.enterprise.inject.spi.Decorator<T>
public WeldInjectionPointAttributes<?,?> getDelegateInjectionPoint()
public InvokableAnnotatedMethod<?> getDecoratorMethod(Method method)
WeldDecorator
getDecoratorMethod
in interface WeldDecorator<T>
public String toString()
toString
in class ManagedBean<T>
Copyright © 2016. All rights reserved.