DefaultConstructorAccessor

Default implementation of ConstructorAccessor that provides basic constructor invocation capabilities. This class automatically ensures the constructor is accessible during initialization, making it ready for reflection-based instantiation of private, protected, or package-private constructors.

Parameters

T

the type of object that will be created by the constructor

Constructors

Link copied to clipboard
constructor(constructor: Constructor<T>)

Properties

Link copied to clipboard
open override val constructor: Constructor<T>

the Java constructor to be accessed

Functions

Link copied to clipboard
open fun invoke(args: Array<Any?>): T

Invokes the constructor with the specified arguments to create a new instance. Uses FastInvoke.safeNewInstance for proper exception handling and performance.