Package com.day.cq.spellchecker.spi
Interface SpellCheckerProvider
-
public interface SpellCheckerProvider
TheSpellCheckerProvider
is a service providing instances ofSpellChecker
This interface can be implemented by implementors of the
SpellChecker
interface to generate instances for different languages.Services of this type are not intended for general consumption. These services are for use as the backend for the
SpellCheckService
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SpellChecker
createSpellChecker(java.lang.String language, java.lang.String[] dictionaryPaths, ResourceResolver resolver)
Creates a new spellchecker.
-
-
-
Method Detail
-
createSpellChecker
SpellChecker createSpellChecker(java.lang.String language, java.lang.String[] dictionaryPaths, ResourceResolver resolver) throws SpellCheckException
Creates a new spellchecker.- Parameters:
language
- Language/country to create spellchecker fordictionaryPaths
- Locations to look for dictionaries. If this isnull
an internal default is being used.- Returns:
- The spellchecker instance
- Throws:
SpellCheckException
- if a spellchecker could not be created for the desired language
-
-