Package org.jboss.weld.bean
Class DecoratorImpl<T>
- java.lang.Object
-
- org.jboss.weld.util.bean.ForwardingBeanAttributes<T>
-
- org.jboss.weld.bean.CommonBean<T>
-
- org.jboss.weld.bean.RIBean<T>
-
- org.jboss.weld.bean.AbstractBean<T,Class<T>>
-
- org.jboss.weld.bean.AbstractClassBean<T>
-
- org.jboss.weld.bean.ManagedBean<T>
-
- org.jboss.weld.bean.DecoratorImpl<T>
-
- All Implemented Interfaces:
Contextual<T>,Bean<T>,BeanAttributes<T>,Decorator<T>,PassivationCapable,ClassBean<T>,DecorableBean<T>,WeldBean<T>,WeldDecorator<T>
public class DecoratorImpl<T> extends ManagedBean<T> implements WeldDecorator<T>
-
-
Field Summary
-
Fields inherited from class org.jboss.weld.bean.AbstractClassBean
annotatedType, enhancedAnnotatedItem
-
Fields inherited from class org.jboss.weld.bean.AbstractBean
type
-
Fields inherited from class org.jboss.weld.bean.RIBean
beanManager
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDecoratorImpl(BeanAttributes<T> attributes, EnhancedAnnotatedType<T> type, BeanManagerImpl beanManager)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<Type>getDecoratedTypes()Obtains the decorated types.InvokableAnnotatedMethod<?>getDecoratorMethod(Method method)Returns the decorated method that can decorate a particular method, if one existsWeldInjectionPointAttributes<?,?>getDelegateInjectionPoint()Set<Annotation>getDelegateQualifiers()Obtains the qualifiers of the delegate injection point.TypegetDelegateType()Obtains the type of the delegate injection point.protected voidinitDecoratedTypes()protected voidinitDelegateBindings()protected voidinitDelegateInjectionPoint()protected voidinitDelegateType()voidinternalInitialize(BeanDeployerEnvironment environment)Initializes the bean and its metadatastatic <T> DecoratorImpl<T>of(BeanAttributes<T> attributes, EnhancedAnnotatedType<T> clazz, BeanManagerImpl beanManager)Creates a decorator beanStringtoString()-
Methods inherited from class org.jboss.weld.bean.ManagedBean
checkBeanImplementation, checkType, create, destroy, initializeAfterBeanDiscovery, isInterceptionCandidate, isPassivationCapableBean, isPassivationCapableDependency, isProxyable, setProducer, specialize
-
Methods inherited from class org.jboss.weld.bean.AbstractClassBean
cleanupAfterBoot, getAnnotated, getDecorators, getEnhancedAnnotated, getInjectionPoints, getInjectionTarget, getInterceptors, getProducer, hasDecorators, hasInterceptors, initType, preSpecialize, setInjectionTarget, setProducer
-
Methods inherited from class org.jboss.weld.bean.AbstractBean
checkSpecialization, getSpecializedBeans, getType, isDependent, isIgnoreFinalMethods, isProxyRequired, isSpecializing, postSpecialize, preInitialize, setIgnoreFinalMethods
-
Methods inherited from class org.jboss.weld.bean.RIBean
getBeanClass, getBeanManager, getContextualInstanceStrategy, getQualifierInstances, initialize, isNormalScoped, setAttributes
-
Methods inherited from class org.jboss.weld.bean.CommonBean
attributes, equals, getId, getIdentifier, hashCode, isNullable, unwrap
-
Methods inherited from class org.jboss.weld.util.bean.ForwardingBeanAttributes
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative
-
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, isNullable
-
Methods inherited from interface javax.enterprise.inject.spi.BeanAttributes
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative
-
Methods inherited from interface org.jboss.weld.bean.ClassBean
getBeanManager
-
Methods inherited from interface javax.enterprise.context.spi.Contextual
create, destroy
-
Methods inherited from interface javax.enterprise.inject.spi.PassivationCapable
getId
-
Methods inherited from interface org.jboss.weld.bean.WeldBean
getIdentifier, getPriority
-
Methods inherited from interface org.jboss.weld.bean.WeldDecorator
getEnhancedAnnotated
-
-
-
-
Constructor Detail
-
DecoratorImpl
protected DecoratorImpl(BeanAttributes<T> attributes, EnhancedAnnotatedType<T> type, BeanManagerImpl beanManager)
-
-
Method Detail
-
of
public static <T> DecoratorImpl<T> of(BeanAttributes<T> attributes, EnhancedAnnotatedType<T> clazz, BeanManagerImpl beanManager)
Creates a decorator bean- Type Parameters:
T- The type- Parameters:
clazz- The classbeanManager- the current manager- Returns:
- a Bean
-
internalInitialize
public void internalInitialize(BeanDeployerEnvironment environment)
Description copied from class:AbstractClassBeanInitializes the bean and its metadata- Overrides:
internalInitializein classManagedBean<T>
-
initDecoratedTypes
protected void initDecoratedTypes()
-
initDelegateInjectionPoint
protected void initDelegateInjectionPoint()
-
initDelegateBindings
protected void initDelegateBindings()
-
initDelegateType
protected void initDelegateType()
-
getDelegateQualifiers
public Set<Annotation> getDelegateQualifiers()
Description copied from interface:DecoratorObtains the qualifiers of the delegate injection point.
- Specified by:
getDelegateQualifiersin interfaceDecorator<T>- Returns:
- the delegate qualifiers
-
getDelegateType
public Type getDelegateType()
Description copied from interface:DecoratorObtains the type of the delegate injection point.
- Specified by:
getDelegateTypein interfaceDecorator<T>- Returns:
- the delegate type
-
getDecoratedTypes
public Set<Type> getDecoratedTypes()
Description copied from interface:DecoratorObtains the decorated types.
- Specified by:
getDecoratedTypesin interfaceDecorator<T>- Returns:
- the set of decorated types
-
getDelegateInjectionPoint
public WeldInjectionPointAttributes<?,?> getDelegateInjectionPoint()
-
getDecoratorMethod
public InvokableAnnotatedMethod<?> getDecoratorMethod(Method method)
Description copied from interface:WeldDecoratorReturns 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- Specified by:
getDecoratorMethodin interfaceWeldDecorator<T>- Returns:
-
toString
public String toString()
- Overrides:
toStringin classManagedBean<T>
-
-