Packages

final class ClassConstructor[T] extends AnyVal with AnyConstructorBase[T]

An implicitly summonable constructor for a concrete class T

returns

izumi.distage.model.providers.Functoid[T] value

Example:
  1. 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)
    }
Linear Supertypes
AnyConstructorBase[T], ClassConstructorOptionalMakeDSL[T], AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ClassConstructor
  2. AnyConstructorBase
  3. ClassConstructorOptionalMakeDSL
  4. AnyVal
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ClassConstructor(provider: Functoid[T])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##: Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  6. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  7. val provider: Functoid[T]
    Definition Classes
    ClassConstructorAnyConstructorBase → ClassConstructorOptionalMakeDSL
  8. def toString(): String
    Definition Classes
    Any

Inherited from AnyConstructorBase[T]

Inherited from ClassConstructorOptionalMakeDSL[T]

Inherited from AnyVal

Inherited from Any

Ungrouped