Class DefaultInstantiator<T>

  • Type Parameters:
    T -
    All Implemented Interfaces:
    Instantiator<T>

    public class DefaultInstantiator<T>
    extends AbstractInstantiator<T>
    Creates a new Java object by calling its class constructor. This class is thread-safe.
    Author:
    Jozef Hartinger
    • Method Detail

      • 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.
      • hasInterceptorSupport

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

        public boolean hasDecoratorSupport()
        Description copied from interface: Instantiator
        Indicates whether instances created by this Instantiator support decorators.