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
public class DecoratorImpl<T>
- extends ManagedBean<T>
- implements javax.enterprise.inject.spi.Decorator<T>
| Methods inherited from class org.jboss.weld.bean.ManagedBean |
applyInterceptors, attachCorrectInjectionPoint, checkBeanImplementation, checkConstructor, checkType, create, destroy, getConstructor, getDescription, getSpecializedBean, initConstructor, initDeclaredInterceptors, isInterceptionCandidate, preSpecialize, specialize |
| Methods inherited from class org.jboss.weld.bean.AbstractClassBean |
applyDecorators, defaultPostConstruct, defaultPreDestroy, flattenInterceptorBindings, getAnnotatedItem, getDecorators, getDefaultName, getInitializerMethods, getInjectableFields, getInjectionPoints, getInjectionTarget, getPostConstruct, getPreDestroy, getSuperclasses, hasDecorators, initInitializerMethods, initInjectableFields, initInterceptors, initPostConstruct, initPreDestroy, initProxyClassForDecoratedBean, initScopeType, initType, setInjectionTarget |
| Methods inherited from class org.jboss.weld.bean.AbstractBean |
addInjectionPoint, addInjectionPoints, getAnnotatedInjectionPoints, getDelegateInjectionPoints, getMergedStereotypes, getName, getQualifiers, getScope, getStereotypes, getType, getTypes, initBindings, initDefaultBindings, initName, initPolicy, initPrimitive, initProxyable, initScopeTypeFromStereotype, initSerializable, initStereotypes, initTypes, isAlternative, isDependent, isInitialized, isNormalScoped, isNullable, isPrimitive, isProxyable, isSerializable, 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 manager)
wrapForResolver
public static <T> javax.enterprise.inject.spi.Decorator<T> wrapForResolver(javax.enterprise.inject.spi.Decorator<T> decorator)
of
public static <T> DecoratorImpl<T> of(WeldClass<T> clazz,
BeanManagerImpl manager)
- Creates a decorator bean
- Type Parameters:
T - The type- Parameters:
clazz - The classmanager - 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()
getDelegateTypes
public java.util.Set<java.lang.reflect.Type> getDelegateTypes()
- The type closure of the delegate type
- Returns:
- the delegateTypes
initDecorators
protected void initDecorators()
- Overrides:
initDecorators in class AbstractClassBean<T>
getDescription
public java.lang.String getDescription()
- Description copied from class:
ManagedBean
- Gets a string representation
- Overrides:
getDescription in class ManagedBean<T>
- Returns:
- The string representation
Copyright © 2008-2009 Seam Framework. All Rights Reserved.