Class SpellEngineFactory
java.lang.Object
com.aquima.interactions.spellengine.SpellEngineFactory
- All Implemented Interfaces:
ISpellEngineFactory
Factory class that may be used to create an instance of ISpellEngine.
- Since:
- 6.0
- Author:
- Jon van Leuven
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate
(ISpellEngineDS datasource) Create an instance of a spell engine based on a datasource.static ISpellEngineFactory
Get an instance of ISpellEngineFactory.
-
Field Details
-
PROPERTY
property that is used to search for a factory implementation.- See Also:
-
-
Constructor Details
-
SpellEngineFactory
public SpellEngineFactory()
-
-
Method Details
-
getInstance
Get an instance of ISpellEngineFactory. If there is an implementation register via the ClassFactory (with key 'spellengine-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:
- ISpellEngineFactory implementation
-
create
Description copied from interface:ISpellEngineFactory
Create an instance of a spell engine based on a datasource.- Specified by:
create
in interfaceISpellEngineFactory
- Parameters:
datasource
- The datasource used for initialization/- Returns:
- The created spell engine (never null)
- Throws:
InitializationException
- Is thrown when the speller engine could not be created.
-