public class DecoratorImpl<T> extends ManagedBean<T> implements WeldDecorator<T>
annotatedType, enhancedAnnotatedItem
type
beanManager
BEAN_ID_PREFIX, BEAN_ID_SEPARATOR
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, createId, 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, isNormalScoped, isProxyRequired, isSpecializing, postSpecialize, preInitialize
getBeanClass, getBeanManager, getQualifierInstances, initialize
attributes, equals, getId, hashCode, isNullable, setAttributes, unwrap
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getEnhancedAnnotated
getBeanClass, getInjectionPoints, isNullable
create, destroy
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative
getId
protected 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)
AbstractClassBean
internalInitialize
in class ManagedBean<T>
protected void initDecoratedTypes()
protected void initDelegateInjectionPoint()
protected void initDelegateBindings()
protected void initDelegateType()
public Set<Annotation> getDelegateQualifiers()
Decorator
Obtains the qualifiers of the delegate injection point.
getDelegateQualifiers
in interface Decorator<T>
public Type getDelegateType()
Decorator
Obtains the type of the delegate injection point.
getDelegateType
in interface Decorator<T>
public Set<Type> getDecoratedTypes()
Decorator
Obtains the decorated types.
getDecoratedTypes
in interface 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 © 2013 Seam Framework. All Rights Reserved.