Package com.aquima.interactions.mapping
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
-
-
Constructor Summary
Constructors Constructor Description MappingFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IMapping
create(IMappingDS datasource, IMetaModel sourceModel, IMetaModel targetModel, IExpressionParser sourceExpressionParser, IExpressionParser targetExpressionParser)
This method creates a new profile mapper using the specified data source, parsers and models.static IMappingFactory
getInstance()
Get an instance of IMappingFactory.
-
-
-
Field Detail
-
PROPERTY
public static final String PROPERTY
This define denotates the key that is used to locate a mapping factory implementation.- See Also:
- Constant Field Values
-
-
Method Detail
-
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 interfaceIMappingFactory
- 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.
-
-