Class PhonexPluginManager

java.lang.Object
ca.phon.phonex.PhonexPluginManager

public class PhonexPluginManager extends Object
Class to help with loading/finding phonex matcher plugins.
  • Method Details

    • getSharedInstance

      public static PhonexPluginManager getSharedInstance()
      Return shared instance
      Returns:
      shared plugin manager instance
    • getPluginProviders

      public PluginProvider[] getPluginProviders()
      Load all phonex plug-in matchers. Plug-ins are discovered by ServiceLoader.
      Returns:
      the list of available plug-in matchers
    • getProvider

      public PluginProvider getProvider(String name)
      Find an appropriate matcher plug-in for the given name.
      Parameters:
      name -
      Returns:
      the requested plug-in matcher or null if not found