Class LenientContainerFactory

java.lang.Object
com.aquima.interactions.framework.LenientFactoryBase
com.aquima.interactions.framework.container.LenientContainerFactory
All Implemented Interfaces:
IContainerFactory

public class LenientContainerFactory extends LenientFactoryBase implements IContainerFactory
Container factory that may be used during development to provide stubbed implementations for missing containers.
Since:
6.0
Author:
O. Kerpershoek
  • Constructor Details

    • LenientContainerFactory

      public LenientContainerFactory()
      Default constructor for the factory.
    • LenientContainerFactory

      public LenientContainerFactory(Map<String,IContainerExpander> containers)
      Constructs the container factory with a map containing the dynamic containers. The key of the map should be the container name, and the value the dynamic container implementation.
      Parameters:
      containers - Map containing the dynamic containers for the factory.
  • Method Details

    • getContainer

      public IContainerExpander getContainer(ApplicationID id, String containerTypeName)
      Description copied from interface: IContainerFactory

      This method should provide an implementation of the container interface for the specified name. The name passed to this method will be the container type name, which might not be a dynamic container depending on the container types defined for the application. When the type name does not refer to a (known) container expander, this method may return the value null to indicate that the specified type is a normal container. When the type is however known, but the implementation could not be created, the method should throw an exception.

      Specified by:
      getContainer in interface IContainerFactory
      Parameters:
      id - Application identifier for which the container should be created.
      containerTypeName - The type name of the container that should be created.
      Returns:
      Implementation of the container for the specified id.