izumi.distage.constructors
Members list
Type members
Classlikes
Attributes
- Supertypes
-
class Any
- Known subtypes
-
class ClassConstructor[T]class FactoryConstructor[T]class TraitConstructor[T]class ZEnvConstructor[T]
An implicitly summonable constructor for a concrete class T
An implicitly summonable constructor for a concrete class T
Attributes
- Returns
- Example
-
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) }
- Companion
- object
- Supertypes
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ClassConstructor.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
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
Attributes
- See also
- Supertypes
-
trait DebugPropertiesclass Objecttrait Matchableclass Any
- Self type
-
DebugProperties.type
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
Attributes
- Returns
- See also
-
izumi.distage.model.definition.impl recommended documenting annotation for use with FactoryConstructor
- Companion
- object
- Supertypes
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
FactoryConstructor.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
MakeMacro.type
An implicitly summonable constructor for a traits or abstract class T
An implicitly summonable constructor for a traits or abstract class T
Attributes
- Returns
- See also
-
izumi.distage.model.definition.impl recommended documenting annotation for use with TraitConstructor
- Companion
- object
- Supertypes
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
TraitConstructor.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
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
Attributes
- See also
- Companion
- object
- Supertypes
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ZEnvConstructor.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ZEnvConstructorMacro.type
Deprecated types
Attributes
- Deprecated
-
Since version
1.2.0
, default behavior formake[T]
changed to not implicitly generate constructors for traits and abstract classes, or for "factory-like" traits and abstract classes, but only for concrete classes.AnyConstructor
as a proxy for default behavior ofmake
has been removed in favor of ClassConstructor, since it is the default behavior ofmake
now. It is now recommended to use ClassConstructor, TraitConstructor (Auto-Traits) and FactoryConstructor (Auto-Factories) explicitly instead of using AnyConstructor.
Value members
Deprecated fields
Attributes
- Deprecated
- true