Class ForwardingInstantiator<T>

java.lang.Object
org.jboss.weld.injection.producer.ForwardingInstantiator<T>
All Implemented Interfaces:
Instantiator<T>
Direct Known Subclasses:
AbstractDecoratorApplyingInstantiator, ConstructorInterceptionInstantiator, InterceptorApplyingInstantiator

public class ForwardingInstantiator<T> extends Object implements Instantiator<T>
  • Constructor Details

    • ForwardingInstantiator

      public ForwardingInstantiator(Instantiator<T> delegate)
  • Method Details

    • delegate

      protected Instantiator<T> delegate()
    • newInstance

      public T newInstance(jakarta.enterprise.context.spi.CreationalContext<T> ctx, BeanManagerImpl manager)
      Specified by:
      newInstance in interface Instantiator<T>
    • hasInterceptorSupport

      public boolean hasInterceptorSupport()
      Description copied from interface: Instantiator
      Indicates whether instances created by this Instantiator support interception.
      Specified by:
      hasInterceptorSupport in interface Instantiator<T>
    • hasDecoratorSupport

      public boolean hasDecoratorSupport()
      Description copied from interface: Instantiator
      Indicates whether instances created by this Instantiator support decorators.
      Specified by:
      hasDecoratorSupport in interface Instantiator<T>
    • getConstructor

      public Constructor<T> getConstructor()
      Description copied from interface: Instantiator
      Returns the constructor used for instantiation. If an enhanced subclass is used for a component instance, this method returns the matching constructor of the original component class.
      Specified by:
      getConstructor in interface Instantiator<T>