ClassParameterResolver

@InterfacedService(acceptMultiple = true)
abstract class ClassParameterResolver<T : ClassParameterResolver<T, R>, R : Any>(val jvmErasure: KClass<out R>) : ParameterResolver<T, R> (source)

Base class for parameter resolvers using static types.

This is best suited if you want a simple resolver for a specific type, such as TimeUnit for example.

Your implementation needs to be annotated with @Resolver, unless this is an output of a ParameterResolverFactory.

Parameters

T

Type of the implementation

R

Type of the returned resolved objects

See also

Constructors

Link copied to clipboard
constructor(clazz: Class<out R>)
constructor(jvmErasure: KClass<out R>)

Properties

Link copied to clipboard
val jvmErasure: KClass<out R>

Functions

Link copied to clipboard
open override fun toString(): String