Class

wvlet.airframe

DesignWithContext

Related Doc: package airframe

Permalink

class DesignWithContext[A] extends Design

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

Instance Constructors

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

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: Design): Design

    Permalink
    Definition Classes
    Design
  4. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  5. def add(other: Design): Design

    Permalink
    Definition Classes
    Design
  6. def addBinding[A](b: Binding): DesignWithContext[A]

    Permalink
    Definition Classes
    Design
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def beforeShutdown(body: (A) ⇒ Unit): DesignWithContext[A]

    Permalink
  9. def bind(t: Surface)(implicit sourceCode: SourceCode): Binder[Any]

    Permalink
    Definition Classes
    Design
  10. macro def bind[A]: Binder[A]

    Permalink
    Definition Classes
    Design
  11. macro def build[A](body: (A) ⇒ Any): Any

    Permalink

    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
    Design
  12. def canEqual(other: Any): Boolean

    Permalink
    Definition Classes
    Design
  13. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  14. macro def debug(message: Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  15. macro def debug(message: Any): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  16. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. def equals(other: Any): Boolean

    Permalink
    Definition Classes
    Design → AnyRef → Any
  18. macro def error(message: Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  19. macro def error(message: Any): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  20. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  21. def hashCode(): Int

    Permalink
    Definition Classes
    Design → AnyRef → Any
  22. macro def info(message: Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  23. macro def info(message: Any): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  24. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  25. macro def logAt(logLevel: LogLevel, message: Any): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  26. lazy val logger: Logger

    Permalink
    Attributes
    protected[this]
    Definition Classes
    LazyLogger
  27. def minimize: Design

    Permalink

    Generates a minimized design by removing overwritten bindings

    Generates a minimized design by removing overwritten bindings

    Definition Classes
    Design
  28. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  29. def newSession: Session

    Permalink

    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
  30. def newSessionBuilder: SessionBuilder

    Permalink

    Method for configuring the session in details

    Method for configuring the session in details

    Definition Classes
    Design
  31. def noLifeCycleLogging: Design

    Permalink
    Definition Classes
    Design
  32. def noStats: Design

    Permalink
    Definition Classes
    Design
  33. def noTracer: Design

    Permalink
    Definition Classes
    Design
  34. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  35. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  36. def onInit(body: (A) ⇒ Unit): DesignWithContext[A]

    Permalink
  37. def onInject(body: (A) ⇒ Unit): DesignWithContext[A]

    Permalink
  38. def onShutdown(body: (A) ⇒ Unit): DesignWithContext[A]

    Permalink
  39. def onStart(body: (A) ⇒ Unit): DesignWithContext[A]

    Permalink
  40. def remove(t: Surface): Design

    Permalink
    Definition Classes
    Design
  41. macro def remove[A]: Design

    Permalink
    Definition Classes
    Design
  42. macro def run[A, B](body: (A) ⇒ B): B

    Permalink

    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
    Design
  43. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  44. def toDesign: Design

    Permalink

    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
  45. def toString(): String

    Permalink
    Definition Classes
    Design → AnyRef → Any
  46. macro def trace(message: Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  47. macro def trace(message: Any): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  48. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  49. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  50. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  51. macro def warn(message: Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  52. macro def warn(message: Any): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  53. def withLazyMode: Design

    Permalink

    Do not initialize singletons for debugging

    Do not initialize singletons for debugging

    Definition Classes
    Design
  54. def withLifeCycleLogging: Design

    Permalink
    Definition Classes
    Design
  55. def withProductionMode: Design

    Permalink

    Enable eager initialization of singletons services for production mode

    Enable eager initialization of singletons services for production mode

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

    Permalink

    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
  57. def withStats(stats: DIStats): Design

    Permalink
    Definition Classes
    Design
  58. def withTracer(t: Tracer): Design

    Permalink

    Use a custom binding tracer

    Use a custom binding tracer

    Definition Classes
    Design

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Design

Inherited from LogSupport

Inherited from LazyLogger

Inherited from LoggingMethods

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped