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
- Alphabetic
- By Inheritance
Inherited
- LazyContainer
- TestLifecycleAware
- Container
- Stoppable
- Andable
- Startable
- AutoCloseable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new LazyContainer(factory: => T)
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 afterTest(description: TestDescription, throwable: Option[Throwable]): Unit
- Definition Classes
- LazyContainer → TestLifecycleAware
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def beforeTest(description: TestDescription): Unit
- Definition Classes
- LazyContainer → TestLifecycleAware
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def close(): Unit
- Definition Classes
- Stoppable → AutoCloseable
- lazy val container: T
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def foreach(f: (Stoppable) => Unit): Unit
- Definition Classes
- Andable
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def getDependencies(): Set[Startable]
- Definition Classes
- Startable
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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 start(): Unit
- Definition Classes
- LazyContainer → Startable
- def stop(): Unit
- Definition Classes
- LazyContainer → Stoppable → Andable → Startable
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def failed(e: Throwable)(implicit description: Description): Unit
- Definition Classes
- LazyContainer → Container
- Annotations
- @deprecated
- Deprecated
Use
stop
and/orTestLifecycleAware.afterTest
instead
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
- def finished()(implicit description: Description): Unit
- Definition Classes
- LazyContainer → Container
- Annotations
- @deprecated
- Deprecated
Use
stop
instead
- def starting()(implicit description: Description): Unit
- Definition Classes
- LazyContainer → Container
- Annotations
- @deprecated
- Deprecated
Use
start
instead
- def succeeded()(implicit description: Description): Unit
- Definition Classes
- LazyContainer → Container
- Annotations
- @deprecated
- Deprecated
Use
stop
and/orTestLifecycleAware.afterTest
instead