WithEnvironment

annotation class WithEnvironment(val value: String)

Annotation to use a specific environment as an implementation of a constructor/method parameter

constructor(param1:Interface, @WithEnvironment("PRO") param2:Interface) this will inject the default implementation of Interface as param1 and the implementation of Interface in the environment PRO as param2

Author

Pau Corbella

Since

1.0.0

Properties

Link copied to clipboard