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

java.lang.Object
  extended by org.jboss.weld.bean.ForwardingBean<T>
      extended by org.jboss.weld.bean.ForwardingDecorator<T>
          extended by org.jboss.weld.bean.CustomDecoratorWrapper<T>
All Implemented Interfaces:
javax.enterprise.context.spi.Contextual<T>, javax.enterprise.inject.spi.Bean<T>, javax.enterprise.inject.spi.Decorator<T>, WeldDecorator<T>

public class CustomDecoratorWrapper<T>
extends ForwardingDecorator<T>
implements WeldDecorator<T>

A wrapper for a decorated instance. Allows to enhance custom decorators with metadata about the WeldClass at deployment time.

Author:
Marius Bogoevici

Method Summary
protected  javax.enterprise.inject.spi.Decorator<T> delegate()
          Abstract getter for the delegate
 WeldMethod<?,?> getDecoratorMethod(Method method)
          Returns 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

 WeldClass<?> getWeldAnnotated()
           
static
<T> CustomDecoratorWrapper<T>
of(javax.enterprise.inject.spi.Decorator<T> delegate, BeanManagerImpl beanManager)
           
 
Methods inherited from class org.jboss.weld.bean.ForwardingDecorator
getDecoratedTypes, getDelegateQualifiers, getDelegateType
 
Methods inherited from class org.jboss.weld.bean.ForwardingBean
create, destroy, equals, getBeanClass, getInjectionPoints, getName, getQualifiers, getScope, getStereotypes, getTypes, hashCode, isAlternative, isNullable, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.enterprise.inject.spi.Decorator
getDecoratedTypes, getDelegateQualifiers, getDelegateType
 
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
 

Method Detail

of

public static <T> CustomDecoratorWrapper<T> of(javax.enterprise.inject.spi.Decorator<T> delegate,
                                               BeanManagerImpl beanManager)

delegate

protected javax.enterprise.inject.spi.Decorator<T> delegate()
Description copied from class: ForwardingBean
Abstract getter for the delegate

Specified by:
delegate in class ForwardingDecorator<T>
Returns:
The delegate

getWeldAnnotated

public WeldClass<?> getWeldAnnotated()
Specified by:
getWeldAnnotated in interface WeldDecorator<T>

getDecoratorMethod

public WeldMethod<?,?> getDecoratorMethod(Method method)
Description copied from interface: WeldDecorator
Returns 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:
getDecoratorMethod in interface WeldDecorator<T>
Returns:


Copyright © 2013 Seam Framework. All Rights Reserved.