lightsaber
lightsaber copied to clipboard
Compile time dependency injection framework for JVM languages. Especially for Kotlin.
I'm trying to convert a project that was using Dagger 2 to Lightsaber, but I can't figure out how I can create Factory classes that allow multiple combinations of arguments...
Example code ``` @Contract interface AppContract class AppContractConfiguration : ContractConfiguration() @ProvidedBy(AppContractConfiguration::class) enum class Dependency @Inject constructor() ```
Example code : ``` @Contract interface AppContract class AppContractConfiguration : ContractConfiguration() interface SomeValidInterface class Outer { @ProvidedAs(SomeValidInterface::class) @ProvidedBy(AppContractConfiguration::class) inner class Dependency @Inject constructor() : SomeValidInterface } ```