Class MappingFactory

java.lang.Object
com.aquima.interactions.mapping.MappingFactory
All Implemented Interfaces:
IMappingFactory

public class MappingFactory extends Object implements IMappingFactory
Factory class that may be used to create an instance of IProfileMapper.
Since:
7.1
Author:
Jon van Leuven
  • Field Details

    • PROPERTY

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

    • MappingFactory

      public MappingFactory()
  • Method Details

    • getInstance

      public static IMappingFactory getInstance()
      Get an instance of IMappingFactory. If there is an implementation register via the ClassFactory (with key 'mapping-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:
      IMappingFactory implementation
    • create

      public IMapping create(IMappingDS datasource, IMetaModel sourceModel, IMetaModel targetModel, IExpressionParser sourceExpressionParser, IExpressionParser targetExpressionParser)
      Description copied from interface: IMappingFactory
      This method creates a new profile mapper using the specified data source, parsers and models.
      Specified by:
      create in interface IMappingFactory
      Parameters:
      datasource - The datasource providing the mapping definitions.
      sourceModel - The metamodel of the source.
      targetModel - The metamodel of the target.
      sourceExpressionParser - The expression parser to evaluate expression from the source model.
      targetExpressionParser - The expression parser to evaluate expression from the source model.
      Returns:
      The profile mapper, never null.