Package-level declarations

Types

Link copied to clipboard

Interface for accessing and invoking constructors through reflection. Provides a type-safe way to create new instances of classes using their constructors with proper error handling and performance optimization.

Link copied to clipboard

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.

Link copied to clipboard
class InjectableObjectFactory<T : Any>(constructorAccessor: ConstructorAccessor<T>, serviceProvider: ServiceProvider) : ObjectFactory<T>

ObjectFactory implementation that creates objects using dependency injection. This factory automatically resolves constructor parameters from a ServiceProvider, enabling automatic dependency injection during object instantiation.

Link copied to clipboard
interface ObjectFactory<T : Any>

Interface for factories that create new instances of objects. Provides a simple contract for object instantiation without specifying how objects are created.