Interface ProxyInstantiator

  • All Superinterfaces:
    org.jboss.weld.bootstrap.api.Service
    All Known Implementing Classes:
    DefaultProxyInstantiator

    public interface ProxyInstantiator
    extends org.jboss.weld.bootstrap.api.Service
    Implementations of this interface are capable of creating instances of a given proxy class. This can either be done simply by calling Class.newInstance() or using more advanced mechanism (e.g. sun.misc.Unsafe)
    Author:
    Jozef Hartinger
    See Also:
    DefaultProxyInstantiator, UnsafeProxyInstantiator, ReflectionFactoryProxyInstantiator
    • Method Detail

      • isUsingConstructor

        boolean isUsingConstructor()
        Indicates whether this instantiator calls proxy class' no-arg constructor or whether it uses an alternative mechanism to obtain a proxy class instance.
        Returns:
        true if this implementation uses proxy class' no-arg constructor for creating new instances, false otherwise