Interface Instantiator<T>

Type Parameters:
T -
All Known Implementing Classes:
AbstractDecoratorApplyingInstantiator, AbstractInstantiator, ConstructorInterceptionInstantiator, DefaultInstantiator, ForwardingInstantiator, InterceptorApplyingInstantiator, SubclassDecoratorApplyingInstantiator, SubclassedComponentInstantiator

public interface Instantiator<T>
Implementation of this interface is capable of producing Java objects. This abstraction allows different strategies to be employed in a component creation process, e.g. DefaultInstantiator or SubclassedComponentInstantiator.
Author:
Jozef Hartinger
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the constructor used for instantiation.
    boolean
    Indicates whether instances created by this Instantiator support decorators.
    boolean
    Indicates whether instances created by this Instantiator support interception.
    newInstance(jakarta.enterprise.context.spi.CreationalContext<T> ctx, BeanManagerImpl manager)
     
  • Method Details

    • newInstance

      T newInstance(jakarta.enterprise.context.spi.CreationalContext<T> ctx, BeanManagerImpl manager)
    • hasInterceptorSupport

      boolean hasInterceptorSupport()
      Indicates whether instances created by this Instantiator support interception.
    • hasDecoratorSupport

      boolean hasDecoratorSupport()
      Indicates whether instances created by this Instantiator support decorators.
    • getConstructor

      Constructor<T> getConstructor()
      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.