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>
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
Modifier and TypeMethodDescriptionjakarta.enterprise.inject.spi.Decorator<T>delegate()getDecoratorMethod(Method method) Returns the decorated method that can decorate a particular method, if one existsstatic <T> CustomDecoratorWrapper<T>of(jakarta.enterprise.inject.spi.Decorator<T> delegate, BeanManagerImpl beanManager) Methods inherited from class org.jboss.weld.bean.ForwardingDecorator
attributes, toStringMethods inherited from class org.jboss.weld.util.bean.IsolatedForwardingDecorator
getDecoratedTypes, getDelegateQualifiers, getDelegateTypeMethods inherited from class org.jboss.weld.util.bean.IsolatedForwardingBean
create, destroy, equals, getBeanClass, getInjectionPoints, hashCodeMethods inherited from class org.jboss.weld.util.bean.ForwardingBeanAttributes
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternativeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface jakarta.enterprise.inject.spi.Bean
getBeanClass, getInjectionPointsMethods inherited from interface jakarta.enterprise.inject.spi.BeanAttributes
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternativeMethods inherited from interface jakarta.enterprise.context.spi.Contextual
create, destroyMethods inherited from interface jakarta.enterprise.inject.spi.Decorator
getDecoratedTypes, getDelegateQualifiers, getDelegateType
-
Method Details
-
of
public static <T> CustomDecoratorWrapper<T> of(jakarta.enterprise.inject.spi.Decorator<T> delegate, BeanManagerImpl beanManager) -
delegate
- Specified by:
delegatein interfaceWrappedContextual<T>- Specified by:
delegatein classForwardingDecorator<T>
-
getEnhancedAnnotated
- Specified by:
getEnhancedAnnotatedin interfaceWeldDecorator<T>
-
getDecoratorMethod
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:
-