winter / io.jentz.winter.inject / InjectConstructor

InjectConstructor

@Target([AnnotationTarget.CLASS]) annotation class InjectConstructor

Annotation stolen from Toothpick that tells the winter-compiler that the first and only constructor of an annotated class should be treated like it were annotated with javax.inject.Inject.

Parameters

value - Allows to register the annotated class with one of its super types.

Constructors

<init>

InjectConstructor(value: KClass<*> = Nothing::class)

Annotation stolen from Toothpick that tells the winter-compiler that the first and only constructor of an annotated class should be treated like it were annotated with javax.inject.Inject.

Properties

value

val value: KClass<*>

Allows to register the annotated class with one of its super types.