Interface SynonymProvider
-
- All Known Implementing Classes:
PropertiesSynonymProvider
public interface SynonymProviderSynonymProviderdefines an interface for a component that returns synonyms for a given term.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String[]getSynonyms(String term)Returns an array of terms that are considered synonyms for the giventerm.voidinitialize(FileSystemResource fsr)Initializes the synonym provider and passes the file system resource to the synonym provider configuration defined by the configuration value of thesynonymProviderConfigPathparameter.
-
-
-
Method Detail
-
initialize
void initialize(FileSystemResource fsr) throws IOException
Initializes the synonym provider and passes the file system resource to the synonym provider configuration defined by the configuration value of thesynonymProviderConfigPathparameter. The resource may benullif the configuration parameter is not set.- Parameters:
fsr- the file system resource to the synonym provider configuration.- Throws:
IOException- if an error occurs while initializing the synonym provider.
-
-