Package com.aquima.interactions.composer
Class ComposerFactory
java.lang.Object
com.aquima.interactions.composer.ComposerFactory
- All Implemented Interfaces:
IComposerFactory
Factory class that may be used to create an instance of IComposer.
- Since:
- 7.0
- Author:
- Jon van Leuven
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate
(IProject project, IMetaModel model, IParserFactory parser, IComposerDS datasource) This method should create a new composer using the provided arguments.static IComposerFactory
Get an instance of IComposerFactory.
-
Field Details
-
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
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 interfaceIComposerFactory
- 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.
-