Class SpellEngineFactory

java.lang.Object
com.aquima.interactions.spellengine.SpellEngineFactory
All Implemented Interfaces:
ISpellEngineFactory

public class SpellEngineFactory extends Object implements ISpellEngineFactory
Factory class that may be used to create an instance of ISpellEngine.
Since:
6.0
Author:
Jon van Leuven
  • Field Details

    • PROPERTY

      public static final String PROPERTY
      property that is used to search for a factory implementation.
      See Also:
  • Constructor Details

    • SpellEngineFactory

      public SpellEngineFactory()
  • Method Details

    • getInstance

      public static ISpellEngineFactory 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

      public ISpellEngine create(ISpellEngineDS datasource)
      Description copied from interface: ISpellEngineFactory
      Create an instance of a spell engine based on a datasource.
      Specified by:
      create in interface ISpellEngineFactory
      Parameters:
      datasource - The datasource used for initialization/
      Returns:
      The created spell engine (never null)