Class DecoratorImpl<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>, jakarta.enterprise.inject.spi.PassivationCapable, ClassBean<T>, DecorableBean<T>, WeldBean<T>, WeldDecorator<T>

public class DecoratorImpl<T> extends ManagedBean<T> implements WeldDecorator<T>
  • Constructor Details

  • Method Details

    • of

      public static <T> DecoratorImpl<T> of(jakarta.enterprise.inject.spi.BeanAttributes<T> attributes, EnhancedAnnotatedType<T> clazz, BeanManagerImpl beanManager)
      Creates a decorator bean
      Type Parameters:
      T - The type
      Parameters:
      clazz - The class
      beanManager - the current manager
      Returns:
      a Bean
    • internalInitialize

      public void internalInitialize(BeanDeployerEnvironment environment)
      Description copied from class: AbstractClassBean
      Initializes the bean and its metadata
      Overrides:
      internalInitialize in class ManagedBean<T>
    • initDecoratedTypes

      protected void initDecoratedTypes()
    • initDelegateInjectionPoint

      protected void initDelegateInjectionPoint()
    • initDelegateBindings

      protected void initDelegateBindings()
    • initDelegateType

      protected void initDelegateType()
    • getDelegateQualifiers

      public Set<Annotation> getDelegateQualifiers()
      Specified by:
      getDelegateQualifiers in interface jakarta.enterprise.inject.spi.Decorator<T>
    • getDelegateType

      public Type getDelegateType()
      Specified by:
      getDelegateType in interface jakarta.enterprise.inject.spi.Decorator<T>
    • getDecoratedTypes

      public Set<Type> getDecoratedTypes()
      Specified by:
      getDecoratedTypes in interface jakarta.enterprise.inject.spi.Decorator<T>
    • getDelegateInjectionPoint

      public WeldInjectionPointAttributes<?,?> getDelegateInjectionPoint()
    • 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 interface WeldDecorator<T>
      Returns:
    • toString

      public String toString()
      Overrides:
      toString in class ManagedBean<T>