Interface ContainerObjectFactory


public interface ContainerObjectFactory
Factory to instantiate container objects
Author:
Ramon Rivas
  • Method Details

    • createContainerObject

      <T> T createContainerObject(Class<T> containerObjectClass)
      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 instantiate
      configuration - 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 instantiate
      configuration - if not null, allows specifying some configuration parameters
      containerObjectContainer - marks this object as the container of the created container object
      Returns:
      the newly created container object