Package com.aquima.interactions.mapping
Class MappingFactory
java.lang.Object
com.aquima.interactions.mapping.MappingFactory
- All Implemented Interfaces:
IMappingFactory
Factory class that may be used to create an instance of IProfileMapper.
- Since:
- 7.1
- Author:
- Jon van Leuven
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate
(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
Get an instance of IMappingFactory.
-
Field Details
-
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
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.
-