public class DecoratorImpl<T> extends ManagedBean<T> implements WeldDecorator<T>
annotatedItem, constructorForEnhancedSubclass, decoratorProxyFactory, enhancedSubclassalternative, beanManager, name, qualifiers, scope, type, typesBEAN_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() |
javax.enterprise.inject.spi.InjectionTarget<T> |
getInjectionTarget() |
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, hasDefaultProducer, initAfterInterceptorsAndDecoratorsInitialized, isInterceptionCandidate, isPassivationCapableBean, isPassivationCapableDependency, isProxyable, preSpecialize, specializeapplyDecorators, checkConstructor, defaultPostConstruct, defaultPreDestroy, getConstructor, getDecorators, getDefaultName, getInitializerMethods, getInjectableFields, getInjectionPoints, getPostConstruct, getPreDestroy, getWeldAnnotated, hasDecorators, hasInterceptors, initConstructor, initEnhancedSubclass, initializeAfterBeanDiscovery, initInitializerMethods, initInjectableFields, initInterceptorsIfNeeded, initPostConstruct, initPreDestroy, initScope, initType, setInjectionTargetaddInjectionPoint, addInjectionPoints, cleanupAfterBoot, getDelegateInjectionPoints, getMergedStereotypes, getName, getNewInjectionPoints, getQualifiers, getScope, getServices, getStereotypes, getType, getTypedTypes, getTypes, getWeldInjectionPoints, initAlternative, initDefaultQualifiers, initName, initQualifiers, initScopeFromStereotype, initStereotypes, initTypes, isAlternative, isDependent, isInitialized, isNullable, isPrimitive, isProxyRequired, isSpecializing, postSpecializeequals, getBeanClass, getBeanManager, getId, getQualifierInstances, hashCode, isNormalScopedclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetWeldAnnotatedprotected 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)
ManagedBeaninitialize 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 javax.enterprise.inject.spi.InjectionTarget<T> getInjectionTarget()
getInjectionTarget in class AbstractClassBean<T>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)
WeldDecoratorgetDecoratorMethod in interface WeldDecorator<T>public String toString()
toString in class ManagedBean<T>Copyright © 2014 Seam Framework. All Rights Reserved.