public class DecoratorImpl<T> extends ManagedBean<T> implements WeldDecorator<T>
annotatedItem, constructorForEnhancedSubclass, decoratorProxyFactory, enhancedSubclass
alternative, beanManager, name, qualifiers, scope, type, types
BEAN_ID_PREFIX, BEAN_ID_SEPARATOR
Modifier | Constructor and Description |
---|---|
protected |
DecoratorImpl(WeldClass<T> type,
BeanManagerImpl beanManager,
org.jboss.weld.bootstrap.api.ServiceRegistry services) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkDelegateInjectionPoints() |
protected void |
checkDelegateType() |
protected Class<T> |
createEnhancedSubclass() |
Set<Type> |
getDecoratedTypes() |
WeldMethod<?,?> |
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
|
WeldInjectionPoint<?,?> |
getDelegateInjectionPoint() |
Set<Annotation> |
getDelegateQualifiers() |
Type |
getDelegateType() |
protected void |
initDecoratedTypes() |
void |
initDecorators() |
protected void |
initDelegateBindings() |
protected void |
initDelegateInjectionPoint() |
protected void |
initDelegateType() |
void |
initialize(BeanDeployerEnvironment environment)
Initializes the bean and its metadata
|
protected boolean |
isSubclassed() |
static <T> DecoratorImpl<T> |
of(WeldClass<T> clazz,
BeanManagerImpl beanManager,
org.jboss.weld.bootstrap.api.ServiceRegistry services)
Creates a decorator bean
|
String |
toString() |
static <T> javax.enterprise.inject.spi.Decorator<T> |
wrap(javax.enterprise.inject.spi.Decorator<T> decorator) |
applyInterceptors, checkBeanImplementation, checkType, create, createId, createInstance, createSimpleId, destroy, getSpecializedBean, initializeAfterBeanDiscovery, isInterceptionCandidate, isPassivationCapableBean, isPassivationCapableDependency, isProxyable, preSpecialize, specialize
applyDecorators, checkConstructor, defaultPostConstruct, defaultPreDestroy, flattenInterceptorBindings, getConstructor, getDecorators, getDefaultName, getInitializerMethods, getInjectableFields, getInjectionPoints, getInjectionTarget, getPostConstruct, getPreDestroy, getWeldAnnotated, hasDecorators, hasInterceptors, initConstructor, initEnhancedSubclass, initInitializerMethods, initInjectableFields, initInterceptionModelForType, initPostConstruct, initPreDestroy, initScope, initType, setInjectionTarget
addInjectionPoint, addInjectionPoints, cleanupAfterBoot, getDelegateInjectionPoints, getMergedStereotypes, getName, getNewInjectionPoints, getQualifiers, getScope, getServices, getStereotypes, getType, getTypedTypes, getTypes, getWeldInjectionPoints, initAlternative, initDefaultQualifiers, initName, initQualifiers, initScopeFromStereotype, initStereotypes, initTypes, isAlternative, isDependent, isInitialized, isNormalScoped, isNullable, isPrimitive, isProxyRequired, isSpecializing, postSpecialize
equals, getBeanClass, getBeanManager, getId, hashCode
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getWeldAnnotated
protected DecoratorImpl(WeldClass<T> type, BeanManagerImpl beanManager, org.jboss.weld.bootstrap.api.ServiceRegistry services)
public static <T> javax.enterprise.inject.spi.Decorator<T> wrap(javax.enterprise.inject.spi.Decorator<T> decorator)
public static <T> DecoratorImpl<T> of(WeldClass<T> clazz, BeanManagerImpl beanManager, org.jboss.weld.bootstrap.api.ServiceRegistry services)
T
- The typeclazz
- The classbeanManager
- the current managerpublic void initialize(BeanDeployerEnvironment environment)
ManagedBean
initialize
in class ManagedBean<T>
protected void initDecoratedTypes()
protected void initDelegateInjectionPoint()
protected Class<T> createEnhancedSubclass()
createEnhancedSubclass
in class AbstractClassBean<T>
protected boolean isSubclassed()
isSubclassed
in class AbstractClassBean<T>
protected void checkDelegateInjectionPoints()
checkDelegateInjectionPoints
in class AbstractBean<T,Class<T>>
protected void initDelegateBindings()
protected void initDelegateType()
protected void checkDelegateType()
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 WeldInjectionPoint<?,?> getDelegateInjectionPoint()
public void initDecorators()
initDecorators
in class AbstractClassBean<T>
public WeldMethod<?,?> getDecoratorMethod(Method method)
WeldDecorator
getDecoratorMethod
in interface WeldDecorator<T>
public String toString()
toString
in class ManagedBean<T>
Copyright © 2012 Seam Framework. All Rights Reserved.