DependencyReflectionJvm

Provides the default reflection behavior for the JVM platform, relying on the standard library calls for inferring which constructors to use, and how to evaluate the parameters as dependency keys.

Report a problem

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open suspend fun <T : Any> create(kClass: KClass<T>, init: suspend (<Error class: unknown class>) -> Any): T
Link copied to clipboard
open fun <T : Any> findConstructors(kClass: KClass<T>): Collection<KFunction<T>>

List constructors of a class in order of preference.

Link copied to clipboard
inline suspend fun mapParameters(parameters: List<KParameter>, resolve: suspend (KParameter) -> Any?): Map<KParameter, Any?>

Resolves the list of parameters from the provided resolve function.

Link copied to clipboard
open fun toDependencyKey(parameter: KParameter): <Error class: unknown class>

Maps a parameter to a DependencyKey.