Package org.arquillian.cube
Interface ContainerObjectFactory
public interface ContainerObjectFactory
Factory to instantiate container objects
- Author:
- Ramon Rivas
-
Method Summary
Modifier and TypeMethodDescription<T> TcreateContainerObject(Class<T> containerObjectClass) Creates an instance of the container object.<T> TcreateContainerObject(Class<T> containerObjectClass, ContainerObjectConfiguration configuration) Creates an instance of the container object.<T> TcreateContainerObject(Class<T> containerObjectClass, ContainerObjectConfiguration configuration, Object containerObjectContainer) Creates an instance of the container object.
-
Method Details
-
createContainerObject
Creates an instance of the container object. It also creates and starts a cube defined by the container object class.- Type Parameters:
T- type of the container object- Parameters:
containerObjectClass- type of the container object to instantiate- Returns:
- the newly created container object
-
createContainerObject
<T> T createContainerObject(Class<T> containerObjectClass, ContainerObjectConfiguration configuration) Creates an instance of the container object. It also creates and starts a cube defined by the container object class. Some configuration can be overridden by passing an additional ContainerObjectConfiguration instance.- Type Parameters:
T- type of the container object- Parameters:
containerObjectClass- type of the container object to instantiateconfiguration- allows specifying some configuration parameters- Returns:
- the newly created container object
-
createContainerObject
<T> T createContainerObject(Class<T> containerObjectClass, ContainerObjectConfiguration configuration, Object containerObjectContainer) Creates an instance of the container object. It also creates and starts a cube defined by the container object class. Some configuration can be overridden by passing an additional ContainerObjectConfiguration instance.- Type Parameters:
T- type of the container object- Parameters:
containerObjectClass- type of the container object to instantiateconfiguration- if not null, allows specifying some configuration parameterscontainerObjectContainer- marks this object as the container of the created container object- Returns:
- the newly created container object
-