Package

wvlet

airframe

Permalink

package airframe

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

Type Members

  1. trait AirframeException extends Exception

    Permalink
  2. class Binder[A] extends LogSupport

    Permalink

  3. case class Design(designOptions: DesignOptions, binding: Vector[Binding]) extends LogSupport with Product with Serializable

    Permalink

    Immutable airframe design.

    Immutable airframe design.

    Design instance does not hold any duplicate bindings for the same Surface.

  4. case class DesignOptions(enabledLifeCycleLogging: Boolean = true, stage: Stage = Stage.DEVELOPMENT, options: Map[String, Any] = Map.empty) extends Serializable with Product

    Permalink

    Design configs

  5. case class EventHookHolder[A](injectee: Injectee, hook: (A) ⇒ Any) extends LifeCycleHook with LogSupport with Product with Serializable

    Permalink
  6. class Injectee extends AnyRef

    Permalink
  7. class LazyF0[+R] extends Serializable with Cloneable

    Permalink

    This class is used to obtain the class names of the call-by-name functions (Function0[R]).

    This class is used to obtain the class names of the call-by-name functions (Function0[R]).

    This wrapper do not directly access the field f (Function0[R]) in order to avoid the evaluation of the function.

  8. class LifeCycleBinder[A] extends AnyRef

    Permalink
  9. trait LifeCycleEventHandler extends AnyRef

    Permalink

  10. class LifeCycleEventHandlerChain extends LifeCycleEventHandler

    Permalink
  11. class LifeCycleEventHandlerPair extends LifeCycleEventHandler

    Permalink
  12. trait LifeCycleHook extends AnyRef

    Permalink
  13. class LifeCycleManager extends LogSupport

    Permalink

    LifeCycleManager manages the life cycle of objects within a Session

  14. sealed trait LifeCycleStage extends AnyRef

    Permalink
  15. implicit class LifeCycleSupport[A] extends LogSupport

    Permalink

    bind[A].withLifeCycle(init = ..., start = ..., shutdown = ...)

  16. class MethodCallHook extends LifeCycleHook

    Permalink
  17. trait Session extends AutoCloseable

    Permalink

    Session manages injected objects (e.g., Singleton)

  18. class SessionBuilder extends LogSupport

    Permalink

  19. trait SessionHolder extends AnyRef

    Permalink

    Trait for embedding Session to a user trait

  20. case class SourceCode(filePath: String, fileName: String, line: Int, col: Int) extends Product with Serializable

    Permalink

    Source code location

  21. sealed trait Stage extends AnyRef

    Permalink

Abstract Value Members

  1. abstract def getClass(): Class[_]

    Permalink
    Definition Classes
    Any

Concrete Value Members

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

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

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

    Permalink
    Definition Classes
    Any
  4. object AddShutdownHook extends LifeCycleEventHandler

    Permalink

  5. object AirframeException extends Serializable

    Permalink
  6. object Binder extends Serializable

    Permalink
  7. object Design extends Serializable

    Permalink
  8. object EventHookHolder extends Serializable

    Permalink
  9. object FILOLifeCycleHookExecutor extends LifeCycleEventHandler with LogSupport

    Permalink

    First In, Last Out (FILO) hook executor.

    First In, Last Out (FILO) hook executor.

    If objects are injected in A -> B -> C order, init an shutdown orders will be: init => A -> B -> C shutdown order => C -> B -> A

  10. object INIT extends LifeCycleStage with Product with Serializable

    Permalink
  11. object JSR250LifeCycleExecutor extends LifeCycleEventHandler with LogSupport

    Permalink

    Support @PreDestroy and @PostConstruct

  12. object LazyF0 extends Serializable

    Permalink
  13. object LifeCycleManager extends Serializable

    Permalink
  14. object NilLifeCycleEventHandler extends LifeCycleEventHandler

    Permalink
  15. object STARTED extends LifeCycleStage with Product with Serializable

    Permalink
  16. object STARTING extends LifeCycleStage with Product with Serializable

    Permalink
  17. object STOPPED extends LifeCycleStage with Product with Serializable

    Permalink
  18. object STOPPING extends LifeCycleStage with Product with Serializable

    Permalink
  19. object Session extends LogSupport

    Permalink
  20. object ShowDebugLifeCycleLog extends LifeCycleEventHandler

    Permalink
  21. object ShowLifeCycleLog extends LifeCycleEventHandler

    Permalink
  22. object SourceCode extends Serializable

    Permalink
  23. object Stage

    Permalink
  24. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  25. macro def bind[A, D1, D2, D3, D4, D5](provider: (D1, D2, D3, D4, D5) ⇒ A): A

    Permalink
  26. macro def bind[A, D1, D2, D3, D4](provider: (D1, D2, D3, D4) ⇒ A): A

    Permalink
  27. macro def bind[A, D1, D2, D3](provider: (D1, D2, D3) ⇒ A): A

    Permalink
  28. macro def bind[A, D1, D2](provider: (D1, D2) ⇒ A): A

    Permalink
  29. macro def bind[A, D1](provider: (D1) ⇒ A): A

    Permalink
  30. macro def bind[A](provider: ⇒ A): A

    Permalink
  31. macro def bind[A]: A

    Permalink

    Inject a singleton of A

  32. macro def bindFactory[F <: Function1[_, _]]: F

    Permalink
  33. macro def bindFactory2[F <: Function2[_, _, _]]: F

    Permalink
  34. macro def bindFactory3[F <: Function3[_, _, _, _]]: F

    Permalink
  35. macro def bindFactory4[F <: Function4[_, _, _, _, _]]: F

    Permalink
  36. macro def bindFactory5[F <: Function5[_, _, _, _, _, _]]: F

    Permalink
  37. macro def debug(message: Any, cause: Throwable): Unit

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

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  39. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  40. macro def error(message: Any, cause: Throwable): Unit

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

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  42. def getOrElseUpdateTraitFactoryCache(s: Surface, factory: (Session) ⇒ Any): (Session) ⇒ Any

    Permalink
  43. def hashCode(): Int

    Permalink
    Definition Classes
    Any
  44. macro def info(message: Any, cause: Throwable): Unit

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

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

    Permalink
    Definition Classes
    Any
  47. lazy val logger: Logger

    Permalink
    Attributes
    protected[this]
    Definition Classes
    LazyLogger
  48. def newDesign: Design

    Permalink

    The entry point to create a new design beginning from a blanc design import wvlet.airframe._ val d = design.bind[X]

    The entry point to create a new design beginning from a blanc design import wvlet.airframe._ val d = design.bind[X]

  49. def newSilentDesign: Design

    Permalink

    Create an empty design, which sends life cycle logs to debug log level

  50. macro def registerTraitFactory[A]: Surface

    Permalink
  51. def toString(): String

    Permalink
    Definition Classes
    Any
  52. macro def trace(message: Any, cause: Throwable): Unit

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

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  54. package tracing

    Permalink
  55. val traitFactoryCache: Map[Surface, (Session) ⇒ Any]

    Permalink
  56. macro def warn(message: Any, cause: Throwable): Unit

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

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods

Inherited from LogSupport

Inherited from LazyLogger

Inherited from LoggingMethods

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped