All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.software.amazon.lastmile.kotlin.inject.anvil.ContributesTo.kt Maven / Gradle / Ivy

Go to download

Extensions for kotlin-inject to make dependency injection easier with a similar feature set as Anvil.

There is a newer version: 0.1.2
Show newest version
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