Package ca.phon.phonex
Class PhonexPluginManager
java.lang.Object
ca.phon.phonex.PhonexPluginManager
Class to help with loading/finding
phonex matcher plugins.
-
Method Summary
Modifier and TypeMethodDescriptionLoad all phonex plug-in matchers.getProvider
(String name) Find an appropriate matcher plug-in for the given name.static PhonexPluginManager
Return shared instance
-
Method Details
-
getPluginProviders
Load all phonex plug-in matchers. Plug-ins are discovered byServiceLoader
.- Returns:
- the list of available plug-in matchers
-
getProvider
Find an appropriate matcher plug-in for the given name.- Parameters:
name
-- Returns:
- the requested plug-in matcher or
null
if not found