Class ComposerFactory

java.lang.Object
com.aquima.interactions.composer.ComposerFactory
All Implemented Interfaces:
IComposerFactory

public class ComposerFactory extends Object implements IComposerFactory
Factory class that may be used to create an instance of IComposer.
Since:
7.0
Author:
Jon van Leuven
  • Field Details

    • PROPERTY

      public static final String PROPERTY
      This define denotes the key that is used to locate a composer factory implementation.
      See Also:
  • Constructor Details

    • ComposerFactory

      public ComposerFactory()
  • Method Details

    • getInstance

      public static IComposerFactory getInstance()
      Get an instance of IComposerFactory. If there is an implementation register via the ClassFactory (with key 'composer-factory'), an instance of this class is returned. Note: keep in mind that the instance returned is kept in a static member, so once this class is loaded always the same instance is returned.
      Returns:
      composer factory implementation.
    • create

      public IComposer create(IProject project, IMetaModel model, IParserFactory parser, IComposerDS datasource)
      Description copied from interface: IComposerFactory
      This method should create a new composer using the provided arguments.
      Specified by:
      create in interface IComposerFactory
      Parameters:
      project - Project containing various global definitions.
      model - Meta model containing the entity and attribute definitions (for the fields).
      parser - The expression parser that should be used when parsing expressions.
      datasource - Data source that provides the element definitions that should be added.
      Returns:
      Composer instance.