Package org.omegat.filters2.master
Class PluginUtils
- java.lang.Object
-
- org.omegat.filters2.master.PluginUtils
-
public final class PluginUtils extends java.lang.Object
Static utilities for OmegaT filter plugins.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PluginUtils.PluginType
Plugin type definitions.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PLUGINS_LIST_FILE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<java.lang.Class<?>>
getFilterClasses()
static java.util.List<java.lang.Class<?>>
getGlossaryClasses()
static java.util.List<java.lang.Class<?>>
getMachineTranslationClasses()
static java.util.List<java.lang.Class<?>>
getMarkerClasses()
static java.util.Collection<PluginInformation>
getPluginInformations()
static java.util.List<java.net.URL>
getThemePluginJars()
static java.util.List<java.lang.Class<?>>
getTokenizerClasses()
static java.lang.Class<?>
getTokenizerClassForLanguage(Language lang)
static void
loadPlugins(java.util.Map<java.lang.String,java.lang.String> params)
Loads all plugins from main classloader and from /plugins/ dir.static void
unloadPlugins()
-
-
-
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()
-
-