Injectable

@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class Injectable(val scope: Scope = Scope.BY_APP, val alias: String = "", val propagation: Propagation = Propagation.ALL, val exclude: KClass<*> = arrayOf())

Annotation to define that a class can be injected. By default, this annotation adds also as an injectable object all its interfaces (Propagation.ALL) unless otherwise specified Also, if not defined, takes the scope BY_APP by default If you want to exclude some of them, do it through parameter 'exclude'

Author

Pau Corbella

Since

1.0.0

Properties

Link copied to clipboard
Link copied to clipboard
val exclude: Array<out KClass<*>>
Link copied to clipboard
Link copied to clipboard