package constructors
- Alphabetic
- By Inheritance
- constructors
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- sealed trait AnyConstructorBase[T] extends ClassConstructorOptionalMakeDSL[T]
- final class ClassConstructor[T] extends AnyVal with AnyConstructorBase[T]
An implicitly summonable constructor for a concrete class
T
An implicitly summonable constructor for a concrete class
T
- returns
import distage.{ClassConstructor, Functoid, Injector, ModuleDef} class A(val i: Int) val constructor: Functoid[A] = ClassConstructor[A] val lifecycle = Injector().produceGet[A](new ModuleDef { make[A].from(constructor) make[Int].fromValue(5) }) lifecycle.use { (a: A) => println(a.i) }
Example: - final class FactoryConstructor[T] extends AnyVal with AnyConstructorBase[T]
An implicitly summonable constructor for a "factory-like" trait or abstract class
T
An implicitly summonable constructor for a "factory-like" trait or abstract class
T
- returns
- See also
izumi.distage.model.definition.impl recommended documenting annotation for use with FactoryConstructor
- final class TraitConstructor[T] extends AnyVal with AnyConstructorBase[T]
An implicitly summonable constructor for a traits or abstract class
T
An implicitly summonable constructor for a traits or abstract class
T
- returns
- See also
izumi.distage.model.definition.impl recommended documenting annotation for use with TraitConstructor
- final class ZEnvConstructor[T] extends AnyVal with AnyConstructorBase[ZEnvironment[T]]
An implicitly summonable constructor for a
ZEnvironment[A & B & C]
An implicitly summonable constructor for a
ZEnvironment[A & B & C]
zio.ZEnvironment
heterogeneous map values may be used by ZIO or other Reader-like effects- See also
Deprecated Type Members
- type AnyConstructor[T] = ClassConstructor[T]
- Annotations
- @deprecated
- Deprecated
Removed since 1.2.0. Use ClassConstructor instead.
Value Members
- object ClassConstructor
- object ClassConstructorOptionalMakeDSL
- object DebugProperties extends fundamentals.platform.properties.DebugProperties
Java properties that control debug output of izumi.distage.constructors & izumi.distage.model.providers.Functoid macros
Java properties that control debug output of izumi.distage.constructors & izumi.distage.model.providers.Functoid macros
- See also
- object FactoryConstructor
- object TraitConstructor
- object ZEnvConstructor
Deprecated Value Members
- lazy val AnyConstructor: ClassConstructor.type
- Annotations
- @deprecated
- Deprecated
Removed since 1.2.0. Use ClassConstructor instead.