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

public class DecoratorImpl<T>
extends ManagedBean<T>
implements javax.enterprise.inject.spi.Decorator<T>


Field Summary
 
Fields inherited from class org.jboss.weld.bean.AbstractClassBean
annotatedItem
 
Fields inherited from class org.jboss.weld.bean.AbstractBean
bindings, manager, name, scopeType, 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 manager)
           
 
Method Summary
protected  void checkDelegateInjectionPoints()
           
protected  void checkDelegateType()
           
 java.util.Set<java.lang.reflect.Type> getDecoratedTypes()
           
 WeldInjectionPoint<?,?> getDelegateInjectionPoint()
           
 java.util.Set<java.lang.annotation.Annotation> getDelegateQualifiers()
           
 java.lang.reflect.Type getDelegateType()
           
 java.util.Set<java.lang.reflect.Type> getDelegateTypes()
          The type closure of the delegate type
 java.lang.String getDescription()
          Gets a string representation
protected  void initDecoratedTypes()
           
protected  void initDecorators()
           
protected  void initDelegateBindings()
           
protected  void initDelegateInjectionPoint()
           
protected  void initDelegateType()
           
 void initialize(BeanDeployerEnvironment environment)
          Initializes the bean and its metadata
static
<T> DecoratorImpl<T>
of(WeldClass<T> clazz, BeanManagerImpl manager)
          Creates a decorator bean
static
<T> javax.enterprise.inject.spi.Decorator<T>
wrapForResolver(javax.enterprise.inject.spi.Decorator<T> decorator)
           
 
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 org.jboss.weld.bean.RIBean
equals, getBeanClass, getId, getManager, hashCode, toString
 
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
 

Constructor Detail

DecoratorImpl

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

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