Packages

c

wvlet.airframe

DesignWithContext

class DesignWithContext[A] extends Design

DesignWithContext[A] is a wrapper of Design class for chaining lifecycle hooks for the same type A. This can be safely cast to just Design

Linear Supertypes
Design, DesignImpl, LogSupport, LazyLogger, LoggingMethods, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DesignWithContext
  2. Design
  3. DesignImpl
  4. LogSupport
  5. LazyLogger
  6. LoggingMethods
  7. Serializable
  8. Serializable
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DesignWithContext(design: Design, lastSurface: Surface)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(other: Design): Design
    Definition Classes
    Design
  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. def add(other: Design): Design
    Definition Classes
    Design
  6. def addBinding[A](b: Binding): DesignWithContext[A]
    Definition Classes
    Design
  7. def afterStart(body: (A) ⇒ Unit): DesignWithContext[A]
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def beforeShutdown(body: (A) ⇒ Unit): DesignWithContext[A]
  10. def bind(t: Surface)(implicit sourceCode: SourceCode): Binder[Any]
    Definition Classes
    Design
  11. macro def bind[A]: Binder[A]
    Definition Classes
    DesignImpl
  12. macro def build[A](body: (A) ⇒ Any): Any

    A helper method of creating a new session and an instance of A.

    A helper method of creating a new session and an instance of A. This method is useful when you only need to use A as an entry point of your program. After executing the body, the sesion will be closed.

    Definition Classes
    DesignImpl
  13. def canEqual(other: Any): Boolean
    Definition Classes
    Design
  14. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  15. macro def debug(message: Any, cause: Throwable): Unit
    Attributes
    protected
    Definition Classes
    LoggingMethods
  16. macro def debug(message: Any): Unit
    Attributes
    protected
    Definition Classes
    LoggingMethods
  17. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. def equals(other: Any): Boolean
    Definition Classes
    Design → AnyRef → Any
  19. macro def error(message: Any, cause: Throwable): Unit
    Attributes
    protected
    Definition Classes
    LoggingMethods
  20. macro def error(message: Any): Unit
    Attributes
    protected
    Definition Classes
    LoggingMethods
  21. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  22. def hashCode(): Int
    Definition Classes
    Design → AnyRef → Any
  23. macro def info(message: Any, cause: Throwable): Unit
    Attributes
    protected
    Definition Classes
    LoggingMethods
  24. macro def info(message: Any): Unit
    Attributes
    protected
    Definition Classes
    LoggingMethods
  25. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  26. macro def logAt(logLevel: LogLevel, message: Any): Unit
    Attributes
    protected
    Definition Classes
    LoggingMethods
  27. lazy val logger: Logger
    Attributes
    protected[this]
    Definition Classes
    LazyLogger
  28. def minimize: Design

    Generates a minimized design by removing overwritten bindings

    Generates a minimized design by removing overwritten bindings

    Definition Classes
    Design
  29. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  30. def newSession: Session

    Create a new session.

    Create a new session.

    With this method, the session will not start automatically. You need to explicitly call session.start and session.shutdown to start/terminate the lifecycle of objects

    Definition Classes
    Design
  31. def newSessionBuilder: SessionBuilder

    Method for configuring the session in details

    Method for configuring the session in details

    Definition Classes
    Design
  32. def noDefaultInstanceInjection: Design
    Definition Classes
    Design
  33. def noLifeCycleLogging: Design
    Definition Classes
    Design
  34. def noStats: Design
    Definition Classes
    Design
  35. def noTracer: Design
    Definition Classes
    Design
  36. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  37. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  38. def onInit(body: (A) ⇒ Unit): DesignWithContext[A]
  39. def onInject(body: (A) ⇒ Unit): DesignWithContext[A]
  40. def onShutdown(body: (A) ⇒ Unit): DesignWithContext[A]
  41. def onStart(body: (A) ⇒ Unit): DesignWithContext[A]
  42. def remove(t: Surface): Design
    Definition Classes
    Design
  43. macro def remove[A]: Design
    Definition Classes
    DesignImpl
  44. macro def run[A, B](body: (A) ⇒ B): B

    Execute a given code block by building A using this design, and return B

    Execute a given code block by building A using this design, and return B

    Definition Classes
    DesignImpl
  45. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  46. def toDesign: Design

    Used for casting itself as Design if returning DesignWithContext type is cumbersome

    Used for casting itself as Design if returning DesignWithContext type is cumbersome

    Definition Classes
    Design
  47. def toString(): String
    Definition Classes
    Design → AnyRef → Any
  48. macro def trace(message: Any, cause: Throwable): Unit
    Attributes
    protected
    Definition Classes
    LoggingMethods
  49. macro def trace(message: Any): Unit
    Attributes
    protected
    Definition Classes
    LoggingMethods
  50. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  51. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  52. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  53. macro def warn(message: Any, cause: Throwable): Unit
    Attributes
    protected
    Definition Classes
    LoggingMethods
  54. macro def warn(message: Any): Unit
    Attributes
    protected
    Definition Classes
    LoggingMethods
  55. def withLazyMode: Design

    Do not initialize singletons for debugging

    Do not initialize singletons for debugging

    Definition Classes
    Design
  56. def withLifeCycleLogging: Design
    Definition Classes
    Design
  57. def withProductionMode: Design

    Enable eager initialization of singletons services for production mode

    Enable eager initialization of singletons services for production mode

    Definition Classes
    Design
  58. def withSession[U](body: (Session) ⇒ U): U

    Run the code block with a new session.

    Run the code block with a new session.

    This method will create a new session, start it, run the given code block, and finally terminate the session after the code block completion.

    Definition Classes
    Design
  59. def withStats(stats: DIStats): Design
    Definition Classes
    Design
  60. def withTracer(t: Tracer): Design

    Use a custom binding tracer

    Use a custom binding tracer

    Definition Classes
    Design

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from Design

Inherited from DesignImpl

Inherited from LogSupport

Inherited from LazyLogger

Inherited from LoggingMethods

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped