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
- Startable
- AutoCloseable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
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( ... ) @native()
-
def
close(): Unit
- Definition Classes
- Startable → AutoCloseable
- lazy val container: T
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getDependencies(): Set[Startable]
- Definition Classes
- Startable
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
start(): Unit
- Definition Classes
- LazyContainer → Startable
-
def
stop(): Unit
- Definition Classes
- LazyContainer → Startable
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
Deprecated Value Members
-
def
failed(e: Throwable)(implicit description: Description): Unit
- Definition Classes
- LazyContainer → Container
- Annotations
- @deprecated
- Deprecated
Use
stopand/orTestLifecycleAware.afterTestinstead
-
def
finished()(implicit description: Description): Unit
- Definition Classes
- LazyContainer → Container
- Annotations
- @deprecated
- Deprecated
Use
stopinstead
-
def
starting()(implicit description: Description): Unit
- Definition Classes
- LazyContainer → Container
- Annotations
- @deprecated
- Deprecated
Use
startinstead
-
def
succeeded()(implicit description: Description): Unit
- Definition Classes
- LazyContainer → Container
- Annotations
- @deprecated
- Deprecated
Use
stopand/orTestLifecycleAware.afterTestinstead