org.jboss.weld.bean
Class DecoratorImpl<T>

java.lang.Object
  extended by org.jboss.weld.bean.RIBean<T>
      extended by org.jboss.weld.bean.AbstractBean<T,java.lang.Class<T>>
          extended by org.jboss.weld.bean.AbstractClassBean<T>
              extended by org.jboss.weld.bean.ManagedBean<T>
                  extended by 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>


Field Summary
 
Fields inherited from class org.jboss.weld.bean.AbstractClassBean
annotatedItem
 
Fields inherited from class org.jboss.weld.bean.AbstractBean
alternative, beanManager, name, qualifiers, scope, type, types
 
Fields inherited from class org.jboss.weld.bean.RIBean
BEAN_ID_PREFIX, BEAN_ID_SEPARATOR
 
Constructor Summary
protected DecoratorImpl(WeldClass<T> type, BeanManagerImpl beanManager)
           
 
Method Summary
protected  void checkDelegateInjectionPoints()
           
protected  void checkDelegateType()
           
protected  T createInstance(javax.enterprise.context.spi.CreationalContext<T> ctx)
           
 java.util.Set<MethodSignature> getDecoratedMethodSignatures()
           
 java.util.Set<java.lang.reflect.Type> getDecoratedTypes()
           
 WeldInjectionPoint<?,?> getDelegateInjectionPoint()
           
 java.util.Set<java.lang.annotation.Annotation> getDelegateQualifiers()
           
 java.lang.reflect.Type getDelegateType()
           
protected  void initConstructor()
          Initializes the constructor
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  void initType()
          Initializes the bean type
static
<T> DecoratorImpl<T>
of(WeldClass<T> clazz, BeanManagerImpl beanManager)
          Creates a decorator bean
static
<T> javax.enterprise.inject.spi.Decorator<T>
wrap(javax.enterprise.inject.spi.Decorator<T> decorator)
           
 
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 org.jboss.weld.bean.RIBean
equals, getBeanClass, getBeanManager, getId, hashCode, isProxyRequired, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.weld.bean.WeldDecorator
getWeldAnnotated
 
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
 

Constructor Detail

DecoratorImpl

protected DecoratorImpl(WeldClass<T> type,
                        BeanManagerImpl beanManager)
Method Detail

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 class
beanManager - 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.