org.jboss.weld.bean
Class DecoratorImpl<T>
java.lang.Object
org.jboss.weld.bean.RIBean<T>
org.jboss.weld.bean.AbstractBean<T,java.lang.Class<T>>
org.jboss.weld.bean.AbstractClassBean<T>
org.jboss.weld.bean.ManagedBean<T>
org.jboss.weld.bean.DecoratorImpl<T>
- All Implemented Interfaces:
- javax.enterprise.context.spi.Contextual<T>, javax.enterprise.inject.spi.Bean<T>, javax.enterprise.inject.spi.Decorator<T>, javax.enterprise.inject.spi.PassivationCapable, WeldDecorator<T>
public class DecoratorImpl<T>
- extends ManagedBean<T>
- implements WeldDecorator<T>
| Methods inherited from class org.jboss.weld.bean.ManagedBean |
applyInterceptors, checkBeanImplementation, checkType, create, createId, createSimpleId, destroy, getSpecializedBean, initializeAfterBeanDiscovery, isInterceptionCandidate, isPassivationCapableBean, isPassivationCapableDependency, preSpecialize, specialize |
| Methods inherited from class org.jboss.weld.bean.AbstractClassBean |
applyDecorators, checkConstructor, defaultPostConstruct, defaultPreDestroy, flattenInterceptorBindings, getConstructor, getDecorators, getDefaultName, getInitializerMethods, getInjectableFields, getInjectionPoints, getInjectionTarget, getPostConstruct, getPreDestroy, getWeldAnnotated, hasCdiBoundInterceptors, hasDecorators, hasDirectlyDefinedInterceptors, initCdiBoundInterceptors, initDirectlyDefinedInterceptors, initInitializerMethods, initInjectableFields, initPostConstruct, initPreDestroy, initProxyClassForDecoratedBean, initScope, setInjectionTarget |
| Methods inherited from class org.jboss.weld.bean.AbstractBean |
addInjectionPoint, addInjectionPoints, getDelegateInjectionPoints, getMergedStereotypes, getName, getNewInjectionPoints, getQualifiers, getScope, getStereotypes, getType, getTypedTypes, getTypes, getWeldInjectionPoints, initAlternative, initDefaultQualifiers, initName, initQualifiers, initScopeFromStereotype, initStereotypes, initTypes, isAlternative, isDependent, isInitialized, isNormalScoped, isNullable, isPrimitive, isProxyable, isSpecializing, postSpecialize |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.enterprise.inject.spi.Bean |
getBeanClass, getInjectionPoints, getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative, isNullable |
| Methods inherited from interface javax.enterprise.context.spi.Contextual |
create, destroy |
DecoratorImpl
protected DecoratorImpl(WeldClass<T> type,
BeanManagerImpl beanManager)
wrap
public static <T> javax.enterprise.inject.spi.Decorator<T> wrap(javax.enterprise.inject.spi.Decorator<T> decorator)
of
public static <T> DecoratorImpl<T> of(WeldClass<T> clazz,
BeanManagerImpl beanManager)
- Creates a decorator bean
- Type Parameters:
T - The type- Parameters:
clazz - The classbeanManager - the current manager
- Returns:
- a Bean
initialize
public void initialize(BeanDeployerEnvironment environment)
- Description copied from class:
ManagedBean
- Initializes the bean and its metadata
- Overrides:
initialize in class ManagedBean<T>
initDecoratedTypes
protected void initDecoratedTypes()
initDelegateInjectionPoint
protected void initDelegateInjectionPoint()
checkDelegateInjectionPoints
protected void checkDelegateInjectionPoints()
- Overrides:
checkDelegateInjectionPoints in class AbstractBean<T,java.lang.Class<T>>
initDelegateBindings
protected void initDelegateBindings()
initDelegateType
protected void initDelegateType()
checkDelegateType
protected void checkDelegateType()
getDelegateQualifiers
public java.util.Set<java.lang.annotation.Annotation> getDelegateQualifiers()
- Specified by:
getDelegateQualifiers in interface javax.enterprise.inject.spi.Decorator<T>
getDelegateType
public java.lang.reflect.Type getDelegateType()
- Specified by:
getDelegateType in interface javax.enterprise.inject.spi.Decorator<T>
getDecoratedTypes
public java.util.Set<java.lang.reflect.Type> getDecoratedTypes()
- Specified by:
getDecoratedTypes in interface javax.enterprise.inject.spi.Decorator<T>
getDelegateInjectionPoint
public WeldInjectionPoint<?,?> getDelegateInjectionPoint()
initType
protected void initType()
- Description copied from class:
AbstractClassBean
- Initializes the bean type
- Overrides:
initType in class AbstractClassBean<T>
initConstructor
protected void initConstructor()
- Description copied from class:
AbstractClassBean
- Initializes the constructor
- Overrides:
initConstructor in class AbstractClassBean<T>
initDecorators
public void initDecorators()
- Overrides:
initDecorators in class AbstractClassBean<T>
createInstance
protected T createInstance(javax.enterprise.context.spi.CreationalContext<T> ctx)
- Overrides:
createInstance in class ManagedBean<T>
getDecoratedMethodSignatures
public java.util.Set<MethodSignature> getDecoratedMethodSignatures()
- Specified by:
getDecoratedMethodSignatures in interface WeldDecorator<T>
Copyright © 2008-2010 Seam Framework. All Rights Reserved.