class Binder[A] extends BinderImpl[A]
- Alphabetic
- By Inheritance
- Binder
- BinderImpl
- LogSupport
- LazyLogger
- LoggingMethods
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def afterStart(body: (A) ⇒ Unit): DesignWithContext[A]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def beforeShutdown(body: (A) ⇒ Unit): DesignWithContext[A]
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
macro
def
debug(message: Any, cause: Throwable): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
-
macro
def
debug(message: Any): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
- val design: Design
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
macro
def
error(message: Any, cause: Throwable): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
-
macro
def
error(message: Any): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
- val from: Surface
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
macro
def
info(message: Any, cause: Throwable): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
-
macro
def
info(message: Any): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
macro
def
logAt(logLevel: LogLevel, message: Any): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
-
lazy val
logger: Logger
- Attributes
- protected[this]
- Definition Classes
- LazyLogger
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def onInit(body: (A) ⇒ Unit): DesignWithContext[A]
- def onInject(body: (A) ⇒ Unit): DesignWithContext[A]
- def onShutdown(body: (A) ⇒ Unit): DesignWithContext[A]
- def onStart(body: (A) ⇒ Unit): DesignWithContext[A]
- val sourceCode: SourceCode
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
macro
def
to[B <: A]: DesignWithContext[B]
Bind a singleton instance of B to A
Bind a singleton instance of B to A
- Definition Classes
- BinderImpl
- def toEagerSingleton: DesignWithContext[A]
-
macro
def
toEagerSingletonOf[B <: A]: DesignWithContext[B]
- Definition Classes
- BinderImpl
-
macro
def
toEagerSingletonProvider[D1, D2, D3, D4, D5](factory: (D1, D2, D3, D4, D5) ⇒ A): DesignWithContext[A]
- Definition Classes
- BinderImpl
-
macro
def
toEagerSingletonProvider[D1, D2, D3, D4](factory: (D1, D2, D3, D4) ⇒ A): DesignWithContext[A]
- Definition Classes
- BinderImpl
-
macro
def
toEagerSingletonProvider[D1, D2, D3](factory: (D1, D2, D3) ⇒ A): DesignWithContext[A]
- Definition Classes
- BinderImpl
-
macro
def
toEagerSingletonProvider[D1, D2](factory: (D1, D2) ⇒ A): DesignWithContext[A]
- Definition Classes
- BinderImpl
-
macro
def
toEagerSingletonProvider[D1](factory: (D1) ⇒ A): DesignWithContext[A]
- Definition Classes
- BinderImpl
-
def
toInstance(any: ⇒ A): DesignWithContext[A]
Bind the type to a given instance.
Bind the type to a given instance. The instance will be instantiated as an eager singleton when creating a session. Note that as you create a new session, new instance will be generated.
-
def
toLazyInstance(any: ⇒ A): DesignWithContext[A]
Bind an instance lazily (no singleton).
Bind an instance lazily (no singleton). This is used internally for implementing bindFactory[I1 => A]
-
macro
def
toProvider[D1, D2, D3, D4, D5](factory: (D1, D2, D3, D4, D5) ⇒ A): DesignWithContext[A]
- Definition Classes
- BinderImpl
-
macro
def
toProvider[D1, D2, D3, D4](factory: (D1, D2, D3, D4) ⇒ A): DesignWithContext[A]
- Definition Classes
- BinderImpl
-
macro
def
toProvider[D1, D2, D3](factory: (D1, D2, D3) ⇒ A): DesignWithContext[A]
- Definition Classes
- BinderImpl
-
macro
def
toProvider[D1, D2](factory: (D1, D2) ⇒ A): DesignWithContext[A]
- Definition Classes
- BinderImpl
-
macro
def
toProvider[D1](factory: (D1) ⇒ A): DesignWithContext[A]
- Definition Classes
- BinderImpl
- def toSingleton: DesignWithContext[A]
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
macro
def
trace(message: Any, cause: Throwable): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
-
macro
def
trace(message: Any): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
macro
def
warn(message: Any, cause: Throwable): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
-
macro
def
warn(message: Any): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated
-
macro
def
toInstanceOf[B <: A]: DesignWithContext[B]
Bind an instance of B to A
Bind an instance of B to A
- Definition Classes
- BinderImpl
- Annotations
- @deprecated
- Deprecated
(Since version 21.5.1) Use to[X] instead. This method will not be available in Scala 3
-
macro
def
toInstanceProvider[D1, D2, D3, D4, D5](factory: (D1, D2, D3, D4, D5) ⇒ A): DesignWithContext[A]
- Definition Classes
- BinderImpl
- Annotations
- @deprecated
- Deprecated
(Since version 21.5.1) Use toProvider[X] instead. This method will not be available in Scala 3
-
macro
def
toInstanceProvider[D1, D2, D3, D4](factory: (D1, D2, D3, D4) ⇒ A): DesignWithContext[A]
- Definition Classes
- BinderImpl
- Annotations
- @deprecated
- Deprecated
(Since version 21.5.1) Use toProvider[X] instead. This method will not be available in Scala 3
-
macro
def
toInstanceProvider[D1, D2, D3](factory: (D1, D2, D3) ⇒ A): DesignWithContext[A]
- Definition Classes
- BinderImpl
- Annotations
- @deprecated
- Deprecated
(Since version 21.5.1) Use toProvider[X] instead. This method will not be available in Scala 3
-
macro
def
toInstanceProvider[D1, D2](factory: (D1, D2) ⇒ A): DesignWithContext[A]
- Definition Classes
- BinderImpl
- Annotations
- @deprecated
- Deprecated
(Since version 21.5.1) Use toProvider[X] instead. This method will not be available in Scala 3
-
macro
def
toInstanceProvider[D1](factory: (D1) ⇒ A): DesignWithContext[A]
- Definition Classes
- BinderImpl
- Annotations
- @deprecated
- Deprecated
(Since version 21.5.1) Use toProvider[X] instead. This method will not be available in Scala 3
-
macro
def
toSingletonOf[B <: A]: DesignWithContext[B]
- Definition Classes
- BinderImpl
- Annotations
- @deprecated
- Deprecated
(Since version 21.5.1) Use to[X] instead. This method will not be available in Scala 3
-
macro
def
toSingletonProvider[D1, D2, D3, D4, D5](factory: (D1, D2, D3, D4, D5) ⇒ A): DesignWithContext[A]
- Definition Classes
- BinderImpl
- Annotations
- @deprecated
- Deprecated
(Since version 21.5.1) Use toProvider[X] instead. This method will not be available in Scala 3
-
macro
def
toSingletonProvider[D1, D2, D3, D4](factory: (D1, D2, D3, D4) ⇒ A): DesignWithContext[A]
- Definition Classes
- BinderImpl
- Annotations
- @deprecated
- Deprecated
(Since version 21.5.1) Use toProvider[X] instead. This method will not be available in Scala 3
-
macro
def
toSingletonProvider[D1, D2, D3](factory: (D1, D2, D3) ⇒ A): DesignWithContext[A]
- Definition Classes
- BinderImpl
- Annotations
- @deprecated
- Deprecated
(Since version 21.5.1) Use toProvider[X] instead. This method will not be available in Scala 3
-
macro
def
toSingletonProvider[D1, D2](factory: (D1, D2) ⇒ A): DesignWithContext[A]
- Definition Classes
- BinderImpl
- Annotations
- @deprecated
- Deprecated
(Since version 21.5.1) Use toProvider[X] instead. This method will not be available in Scala 3
-
macro
def
toSingletonProvider[D1](factory: (D1) ⇒ A): DesignWithContext[A]
- Definition Classes
- BinderImpl
- Annotations
- @deprecated
- Deprecated
(Since version 21.5.1) Use toProvider[X] instead. This method will not be available in Scala 3