mockspresso-api / com.episode6.hackit.mockspresso.annotation / Dependency

Dependency

@Target([AnnotationTarget.FIELD]) class Dependency

Annotation that represents a dependency to be added to mockspresso's dependency map. Applies to non-null (usually final) fields.

Constructors

<init>

Dependency(bindAs: KClass<*>)

Annotation that represents a dependency to be added to mockspresso's dependency map. Applies to non-null (usually final) fields.

Properties

bindAs

val bindAs: KClass<*>