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 clazz.getDeclaredConstructor().newInstance() or using more advanced mechanism (e.g. sun.misc.Unsafe)
Author:
Jozef Hartinger
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Indicates whether this instantiator calls proxy class' no-arg constructor or whether it uses an alternative mechanism to obtain a proxy class instance.
    <T> T
    newInstance(Class<T> clazz)
    Create a new instance of a proxy class.
    validateNoargConstructor(Constructor<T> constructor, Class<?> clazz, jakarta.enterprise.inject.spi.Bean<?> declaringBean)
    Validate, whether the given constructor is sufficient for a class to be proxyable.

    Methods inherited from interface org.jboss.weld.bootstrap.api.Service

    cleanup