commonMain.software.amazon.lastmile.kotlin.inject.anvil.ContributesTo.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of runtime-jvm Show documentation
Show all versions of runtime-jvm Show documentation
Extensions for kotlin-inject to make dependency injection easier with a similar feature set as Anvil.
package software.amazon.lastmile.kotlin.inject.anvil
import kotlin.annotation.AnnotationTarget.CLASS
import kotlin.reflect.KClass
/**
* Marks a component interface to be included in the dependency graph in the given [scope].
* The processor will automatically add the interface as super type to the final component
* marked with [MergeComponent].
* ```
* @ContributesTo(AppScope::class)
* interface ComponentInterface { .. }
* ```
*/
@Target(CLASS)
public annotation class ContributesTo(
/**
* The scope in which to include this contributed component interface.
*/
val scope: KClass<*>,
)
© 2015 - 2024 Weber Informatics LLC | Privacy Policy