Package io.quarkus.devservices.common
Class StartableContainer<T extends org.testcontainers.containers.GenericContainer<?>>
java.lang.Object
io.quarkus.devservices.common.StartableContainer<T>
- Type Parameters:
T- the type of the container
- All Implemented Interfaces:
io.quarkus.deployment.builditem.Startable,Closeable,AutoCloseable
public class StartableContainer<T extends org.testcontainers.containers.GenericContainer<?>>
extends Object
implements io.quarkus.deployment.builditem.Startable
A wrapper for a
GenericContainer that implements the Startable interface.-
Constructor Summary
ConstructorsConstructorDescriptionStartableContainer(T container) StartableContainer(T container, Function<T, String> connectionInfoFunction) -
Method Summary
-
Constructor Details
-
StartableContainer
-
StartableContainer
-
-
Method Details
-
start
public void start()- Specified by:
startin interfaceio.quarkus.deployment.builditem.Startable
-
getConnectionInfo
- Specified by:
getConnectionInfoin interfaceio.quarkus.deployment.builditem.Startable
-
getContainer
-
getContainerId
- Specified by:
getContainerIdin interfaceio.quarkus.deployment.builditem.Startable
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-