final class ClassConstructor[T] extends AnyVal with AnyConstructorBase[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:
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ClassConstructor
- AnyConstructorBase
- ClassConstructorOptionalMakeDSL
- AnyVal
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val provider: Functoid[T]
- Definition Classes
- ClassConstructor → AnyConstructorBase → ClassConstructorOptionalMakeDSL
- def toString(): String
- Definition Classes
- Any