Package org.jboss.weld.bean
Class CustomDecoratorWrapper<T>
- java.lang.Object
-
- org.jboss.weld.util.bean.ForwardingBeanAttributes<T>
-
- org.jboss.weld.util.bean.IsolatedForwardingBean<T>
-
- org.jboss.weld.util.bean.IsolatedForwardingDecorator<T>
-
- org.jboss.weld.bean.ForwardingDecorator<T>
-
- org.jboss.weld.bean.CustomDecoratorWrapper<T>
-
- All Implemented Interfaces:
Contextual<T>,Bean<T>,BeanAttributes<T>,Decorator<T>,WeldDecorator<T>,WrappedContextual<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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jboss.weld.util.bean.IsolatedForwardingDecorator
IsolatedForwardingDecorator.Impl<T>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Decorator<T>delegate()InvokableAnnotatedMethod<?>getDecoratorMethod(Method method)Returns the decorated method that can decorate a particular method, if one existsEnhancedAnnotatedType<?>getEnhancedAnnotated()static <T> CustomDecoratorWrapper<T>of(Decorator<T> delegate, BeanManagerImpl beanManager)-
Methods inherited from class org.jboss.weld.bean.ForwardingDecorator
attributes, toString
-
Methods inherited from class org.jboss.weld.util.bean.IsolatedForwardingDecorator
getDecoratedTypes, getDelegateQualifiers, getDelegateType
-
Methods inherited from class org.jboss.weld.util.bean.IsolatedForwardingBean
create, destroy, equals, getBeanClass, getInjectionPoints, hashCode, isNullable
-
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 javax.enterprise.context.spi.Contextual
create, destroy
-
Methods inherited from interface javax.enterprise.inject.spi.Decorator
getDecoratedTypes, getDelegateQualifiers, getDelegateType
-
-
-
-
Method Detail
-
of
public static <T> CustomDecoratorWrapper<T> of(Decorator<T> delegate, BeanManagerImpl beanManager)
-
delegate
public Decorator<T> delegate()
- Specified by:
delegatein interfaceWrappedContextual<T>- Specified by:
delegatein classForwardingDecorator<T>
-
getEnhancedAnnotated
public EnhancedAnnotatedType<?> getEnhancedAnnotated()
- Specified by:
getEnhancedAnnotatedin interfaceWeldDecorator<T>
-
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:
-
-