Class EngineFactory
java.lang.Object
com.aquima.interactions.test.templates.EngineFactory
Factory class to allow easy creation of various components using templates.
- Since:
- 7.0
- Author:
- F. van der Meer
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.aquima.interactions.communication.ICommunicationEngine
createCommunicationEngine
(ApplicationTemplate application) This method may be used to create a communication engine from a template.static com.aquima.interactions.composer.IComposer
createComposer
(IApplicationTemplate application) This method may be used to create a composer.static com.aquima.interactions.portal.IElementComposer
createElementComposer
(IApplicationTemplate application) This method may be used to create an element composer.static com.aquima.interactions.flow.IFlowEngine
createFlowEngine
(IApplicationTemplate application) This method may be used to create a flow engine.static com.aquima.interactions.metamodel.IMetaModel
createMetaModel
(IApplicationTemplate application) This method may be used to create a meta model.static com.aquima.interactions.metamodel.IMetaModel
createMetaModel
(MetaModelTemplate metaModel) This method may be used to construct a meta-model from a template.static com.aquima.interactions.rule.IParserFactory
createParserFactory
(IApplicationTemplate template) This method may be used to create a parser factory from an application template.static com.aquima.interactions.portal.ICommunicationEngine
createPortalCommunicationEngine
(ApplicationTemplate application) This method may be used to create a communication engine that is exposed in the portal engine from a template.static com.aquima.interactions.portal.IPortalEngine
createPortalEngine
(IApplicationTemplate application) This method may be used to create a portal engine.static com.aquima.interactions.process.IProcessEngine
createProcessEngine
(IApplicationTemplate template) This method may be used to create a process engine.static com.aquima.interactions.process.IProcessEngine
createProcessEngine
(ProcessModuleTemplate template) This method may be used to create a process engine.static com.aquima.interactions.process.IProcessEngine
createProcessEngine
(ProcessModuleTemplate template, FactoryManagerTemplate factoryTemplate) static com.aquima.interactions.process.IProcessEngineManager
This method may be used to create a process engine manager.static com.aquima.interactions.profile.IProfile
createProfile
(IApplicationTemplate application) This method may be used to create a profile.static com.aquima.interactions.project.IProject
createProject
(IApplicationTemplate application) This method may be used to create a project.static com.aquima.interactions.rule.IRuleEngine
createRuleEngine
(IApplicationTemplate application) This method may be used to create a rule engine.static com.aquima.interactions.spellengine.ISpellEngine
This method may be used to create a spell engine (used by masks).static com.aquima.interactions.profile.IProfile
createTmsProfile
(IApplicationTemplate application) This method may be used to create a thruth-maintaining profile.static com.aquima.interactions.dtree.ITreeEngine
createTreeEngine
(IApplicationTemplate template) This method may be used to create a tree engine using the information provided by the application template.static com.aquima.interactions.portal.IWebServices
createWebServices
(IApplicationTemplate template) This method may be used to create exposed webservices from a template.
-
Method Details
-
createRuleEngine
public static com.aquima.interactions.rule.IRuleEngine createRuleEngine(IApplicationTemplate application) This method may be used to create a rule engine.- Parameters:
application
- The application template containing the information needed to initialize the component.- Returns:
- The requested component initialized with the information from the application template.
- Throws:
com.aquima.interactions.foundation.report.InitializationException
- This exception is thrown when the component could not be initialized.
-
createFlowEngine
public static com.aquima.interactions.flow.IFlowEngine createFlowEngine(IApplicationTemplate application) This method may be used to create a flow engine.- Parameters:
application
- The application template containing the information needed to initialize the component.- Returns:
- The requested component initialized with the information from the application template.
- Throws:
com.aquima.interactions.foundation.report.InitializationException
- This exception is thrown when the component could not be initialized.
-
createMetaModel
public static com.aquima.interactions.metamodel.IMetaModel createMetaModel(IApplicationTemplate application) This method may be used to create a meta model.- Parameters:
application
- The application template containing the information needed to initialize the component.- Returns:
- The requested component initialized with the information from the application template.
- Throws:
com.aquima.interactions.foundation.report.InitializationException
- This exception is thrown when the component could not be initialized.
-
createMetaModel
public static com.aquima.interactions.metamodel.IMetaModel createMetaModel(MetaModelTemplate metaModel) This method may be used to construct a meta-model from a template.- Parameters:
metaModel
- Template that should be used to get the model information from.- Returns:
- The requested component initialized with the information from the application template.
- Throws:
com.aquima.interactions.foundation.report.InitializationException
- This exception is thrown when the component could not be initialized.
-
createProject
public static com.aquima.interactions.project.IProject createProject(IApplicationTemplate application) This method may be used to create a project.- Parameters:
application
- The application template containing the information needed to initialize the component.- Returns:
- The requested component initialized with the information from the application template.
- Throws:
com.aquima.interactions.foundation.report.InitializationException
- This exception is thrown when the component could not be initialized.
-
createComposer
public static com.aquima.interactions.composer.IComposer createComposer(IApplicationTemplate application) This method may be used to create a composer.- Parameters:
application
- The application template containing the information needed to initialize the component.- Returns:
- The requested component initialized with the information from the application template.
- Throws:
com.aquima.interactions.foundation.report.InitializationException
- This exception is thrown when the component could not be initialized.
-
createProfile
public static com.aquima.interactions.profile.IProfile createProfile(IApplicationTemplate application) This method may be used to create a profile.- Parameters:
application
- The application template containing the information needed to initialize the component.- Returns:
- The requested component initialized with the information from the application template.
- Throws:
com.aquima.interactions.foundation.exception.AppException
- This exception is thrown when the component could not be initialized.
-
createTmsProfile
public static com.aquima.interactions.profile.IProfile createTmsProfile(IApplicationTemplate application) This method may be used to create a thruth-maintaining profile.- Parameters:
application
- The application template containing the information needed to initialize the component.- Returns:
- The requested component initialized with the information from the application template.
- Throws:
com.aquima.interactions.foundation.exception.AppException
- This exception is thrown when the component could not be initialized.
-
createSpellEngine
public static com.aquima.interactions.spellengine.ISpellEngine createSpellEngine()This method may be used to create a spell engine (used by masks).- Returns:
- The requested component initialized.
- Throws:
com.aquima.interactions.foundation.exception.AppException
- This exception is thrown when the component could not be initialized.
-
createPortalEngine
public static com.aquima.interactions.portal.IPortalEngine createPortalEngine(IApplicationTemplate application) This method may be used to create a portal engine.- Parameters:
application
- The application template containing the information needed to initialize the component.- Returns:
- The requested component initialized.
- Throws:
com.aquima.interactions.foundation.exception.AppException
- This exception is thrown when the component could not be initialized.
-
createElementComposer
public static com.aquima.interactions.portal.IElementComposer createElementComposer(IApplicationTemplate application) This method may be used to create an element composer.- Parameters:
application
- The application template containing the information needed to initialize the component.- Returns:
- The requested component initialized.
- Throws:
com.aquima.interactions.foundation.exception.AppException
- This exception is thrown when the component could not be initialized.
-
createProcessEngine
public static com.aquima.interactions.process.IProcessEngine createProcessEngine(IApplicationTemplate template) This method may be used to create a process engine.- Parameters:
template
- The process module template containing the information needed to initialize the component.- Returns:
- The requested component initialized, may be null when the template does not contain any process engine information.
- Throws:
com.aquima.interactions.foundation.exception.AppException
- This exception is thrown when the component could not be initialized.
-
createProcessEngine
public static com.aquima.interactions.process.IProcessEngine createProcessEngine(ProcessModuleTemplate template) This method may be used to create a process engine.- Parameters:
template
- The process module template containing the information needed to initialize the component.- Returns:
- The requested component initialized.
- Throws:
com.aquima.interactions.foundation.exception.AppException
- This exception is thrown when the component could not be initialized.
-
createProcessEngine
public static com.aquima.interactions.process.IProcessEngine createProcessEngine(ProcessModuleTemplate template, FactoryManagerTemplate factoryTemplate) -
createProcessEngineManager
public static com.aquima.interactions.process.IProcessEngineManager createProcessEngineManager(IApplicationTemplate template) This method may be used to create a process engine manager.- Parameters:
template
- The process module template containing the information needed to initialize the component.- Returns:
- The requested component initialized, may be null when te template does not contain any process engine information.
- Throws:
com.aquima.interactions.foundation.exception.AppException
- This exception is thrown when the component could not be initialized.
-
createTreeEngine
public static com.aquima.interactions.dtree.ITreeEngine createTreeEngine(IApplicationTemplate template) This method may be used to create a tree engine using the information provided by the application template.- Parameters:
template
- The application template containing the information needed to initialize a tree engine.- Returns:
- The requested component initialized with the information from the application template.
- Throws:
com.aquima.interactions.foundation.exception.AppException
- This exception is thrown when the component could not be initialized.
-
createParserFactory
public static com.aquima.interactions.rule.IParserFactory createParserFactory(IApplicationTemplate template) This method may be used to create a parser factory from an application template. This method uses the project, meta-model, rule engine and configuration template.- Parameters:
template
- The application template containing the information needed for initialization of the factory.- Returns:
- The parser factory based on the application template.
- Throws:
com.aquima.interactions.foundation.report.InitializationException
- This exception is thrown when the factory could not be initialized.
-
createWebServices
public static com.aquima.interactions.portal.IWebServices createWebServices(IApplicationTemplate template) This method may be used to create exposed webservices from a template.- Parameters:
template
- The template containing the information needed for initialization of the models.- Returns:
- The exposed web services.
- Throws:
com.aquima.interactions.foundation.report.InitializationException
- This exception is thrown when the models could not be initialized.
-
createCommunicationEngine
public static com.aquima.interactions.communication.ICommunicationEngine createCommunicationEngine(ApplicationTemplate application) This method may be used to create a communication engine from a template. See also the createPortalCommunicationEngine method to create the engine that is exposed by the portal engine.- Parameters:
application
- The template containing the information needed for initialization of the models.- Returns:
- The communication engine.
- Throws:
com.aquima.interactions.foundation.report.InitializationException
- This exception is thrown when the models could not be initialized.
-
createPortalCommunicationEngine
public static com.aquima.interactions.portal.ICommunicationEngine createPortalCommunicationEngine(ApplicationTemplate application) This method may be used to create a communication engine that is exposed in the portal engine from a template.- Parameters:
application
- The template containing the information needed for initialization of the models.- Returns:
- The communication engine.
- Throws:
com.aquima.interactions.foundation.report.InitializationException
- This exception is thrown when the models could not be initialized.
-