public class DockerContainerObjectBuilder<T> extends Object
DockerContainerObjectFactory| Modifier and Type | Field and Description |
|---|---|
static String |
TEMPORARY_FOLDER_PREFIX |
static String |
TEMPORARY_FOLDER_SUFFIX |
| Constructor and Description |
|---|
DockerContainerObjectBuilder(DockerClientExecutor dockerClientExecutor,
CubeController cubeController,
CubeRegistry cubeRegistry) |
| Modifier and Type | Method and Description |
|---|---|
T |
build()
Triggers the building process, builds, creates and starts the docker container associated with the requested
container object, creates the container object and returns it
|
DockerContainerObjectBuilder<T> |
onCubeCreated(Consumer<DockerCube> cubeCreatedCallback)
Specifies a consumer that will be executed after the cube object is created and after cube is created or started
by the cube controller.
|
DockerContainerObjectBuilder<T> |
withContainerObjectClass(Class<T> containerObjectClass)
Specifies the container object class to be instantiated
|
DockerContainerObjectBuilder<T> |
withContainerObjectConfiguration(ContainerObjectConfiguration configuration)
Specifies a configuration (can be partial) to be used to override the default configuration set using annotations
on the container object.
|
DockerContainerObjectBuilder<T> |
withContainerObjectContainer(Object containerObjectContainer)
Specifies an optional object that has a strong reference to the object being created.
|
DockerContainerObjectBuilder<T> |
withEnrichers(Collection<org.jboss.arquillian.test.spi.TestEnricher> enrichers)
Specifies the list of enrichers that will be used to enrich the container object.
|
public static final String TEMPORARY_FOLDER_PREFIX
public static final String TEMPORARY_FOLDER_SUFFIX
public DockerContainerObjectBuilder(DockerClientExecutor dockerClientExecutor, CubeController cubeController, CubeRegistry cubeRegistry)
public DockerContainerObjectBuilder<T> withContainerObjectContainer(Object containerObjectContainer)
containerObjectContainer - the container object's containerIsContainerObjectpublic DockerContainerObjectBuilder<T> withContainerObjectClass(Class<T> containerObjectClass)
containerObjectClass - container object class to be instantiatedpublic DockerContainerObjectBuilder<T> withContainerObjectConfiguration(ContainerObjectConfiguration configuration)
Currently only supports instances of CubeContainerObjectConfiguration
configuration - partial configuration to override default container object cube configurationCubeContainerObjectConfiguration,
CubeContainerpublic DockerContainerObjectBuilder<T> withEnrichers(Collection<org.jboss.arquillian.test.spi.TestEnricher> enrichers)
enrichers - list of enrichers that will be used to enrich the container objectpublic DockerContainerObjectBuilder<T> onCubeCreated(Consumer<DockerCube> cubeCreatedCallback)
cubeCreatedCallback - consumer that will be called when the cube instance is createdpublic T build() throws IllegalAccessException, IOException, InvocationTargetException
IllegalAccessException - if there is an error accessing the container object fieldsIOException - if there is an I/O error while preparing the docker buildInvocationTargetException - if there is an error while calling the DockerFile archive creationCopyright © 2018 JBoss by Red Hat. All rights reserved.