Class PluginUtils


  • public final class PluginUtils
    extends java.lang.Object
    Static utilities for OmegaT filter plugins.
    • Field Detail

      • PLUGINS_LIST_FILE

        public static final java.lang.String PLUGINS_LIST_FILE
        See Also:
        Constant Field Values
    • Method Detail

      • loadPlugins

        public static void loadPlugins​(java.util.Map<java.lang.String,​java.lang.String> params)
        Loads all plugins from main classloader and from /plugins/ dir. We should load all jars from /plugins/ dir first, because some plugin can use more than one jar.
      • getFilterClasses

        public static java.util.List<java.lang.Class<?>> getFilterClasses()
      • getTokenizerClasses

        public static java.util.List<java.lang.Class<?>> getTokenizerClasses()
      • getTokenizerClassForLanguage

        public static java.lang.Class<?> getTokenizerClassForLanguage​(Language lang)
      • getMarkerClasses

        public static java.util.List<java.lang.Class<?>> getMarkerClasses()
      • getMachineTranslationClasses

        public static java.util.List<java.lang.Class<?>> getMachineTranslationClasses()
      • getGlossaryClasses

        public static java.util.List<java.lang.Class<?>> getGlossaryClasses()
      • getThemePluginJars

        public static java.util.List<java.net.URL> getThemePluginJars()
      • unloadPlugins

        public static void unloadPlugins()
      • getPluginInformations

        public static java.util.Collection<PluginInformation> getPluginInformations()