class LazyContainer[T <: Container] extends Container with TestLifecycleAware

Lazy container wrapper aims to solve the problem of cross-container dependencies in MultipleContainers when a second container requires some after start data from a first one (e.g. an application container needs JDBC url of a container with a database - in that case the url becomes available after the database container has started)

You don't need to wrap your containers into the LazyContainer manually when you pass your containers in the MultipleContainers- there is implicit conversion for that.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LazyContainer
  2. TestLifecycleAware
  3. Container
  4. Stoppable
  5. Andable
  6. Startable
  7. AutoCloseable
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new LazyContainer(factory: => T)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def afterTest(description: TestDescription, throwable: Option[Throwable]): Unit
    Definition Classes
    LazyContainerTestLifecycleAware
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def beforeTest(description: TestDescription): Unit
    Definition Classes
    LazyContainerTestLifecycleAware
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  8. def close(): Unit
    Definition Classes
    Stoppable → AutoCloseable
  9. lazy val container: T
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  12. def foreach(f: (Stoppable) => Unit): Unit
    Definition Classes
    Andable
  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. def getDependencies(): Set[Startable]
    Definition Classes
    Startable
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. def start(): Unit
    Definition Classes
    LazyContainer → Startable
  21. def stop(): Unit
    Definition Classes
    LazyContainerStoppableAndable → Startable
  22. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def failed(e: Throwable)(implicit description: Description): Unit
    Definition Classes
    LazyContainerContainer
    Annotations
    @deprecated
    Deprecated

    Use stop and/or TestLifecycleAware.afterTest instead

  2. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated
  3. def finished()(implicit description: Description): Unit
    Definition Classes
    LazyContainerContainer
    Annotations
    @deprecated
    Deprecated

    Use stop instead

  4. def starting()(implicit description: Description): Unit
    Definition Classes
    LazyContainerContainer
    Annotations
    @deprecated
    Deprecated

    Use start instead

  5. def succeeded()(implicit description: Description): Unit
    Definition Classes
    LazyContainerContainer
    Annotations
    @deprecated
    Deprecated

    Use stop and/or TestLifecycleAware.afterTest instead

Inherited from TestLifecycleAware

Inherited from Container

Inherited from Stoppable

Inherited from Andable

Inherited from Startable

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped