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:
jakarta.enterprise.context.spi.Contextual<T>
,jakarta.enterprise.inject.spi.Bean<T>
,jakarta.enterprise.inject.spi.BeanAttributes<T>
,jakarta.enterprise.inject.spi.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 jakarta.enterprise.inject.spi.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(jakarta.enterprise.inject.spi.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 jakarta.enterprise.inject.spi.Bean
getBeanClass, getInjectionPoints, isNullable
-
-
-
-
Method Detail
-
of
public static <T> CustomDecoratorWrapper<T> of(jakarta.enterprise.inject.spi.Decorator<T> delegate, BeanManagerImpl beanManager)
-
delegate
public jakarta.enterprise.inject.spi.Decorator<T> delegate()
- Specified by:
delegate
in interfaceWrappedContextual<T>
- Specified by:
delegate
in classForwardingDecorator<T>
-
getEnhancedAnnotated
public EnhancedAnnotatedType<?> getEnhancedAnnotated()
- Specified by:
getEnhancedAnnotated
in interfaceWeldDecorator<T>
-
getDecoratorMethod
public InvokableAnnotatedMethod<?> 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 interfaceWeldDecorator<T>
- Returns:
-
-