public final class PluginUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static java.util.List<java.lang.Class<?>> |
BASE_PLUGIN_CLASSES |
protected static java.util.List<java.lang.Class<?>> |
FILTER_CLASSES |
protected static java.util.List<java.lang.Class<?>> |
GLOSSARY_CLASSES |
protected static java.util.List<java.lang.Class<?>> |
LOADED_PLUGINS |
protected static java.util.List<java.lang.Class<?>> |
MACHINE_TRANSLATION_CLASSES |
protected static java.util.List<java.lang.Class<?>> |
MARKER_CLASSES |
static java.lang.String |
PLUGINS_LIST_FILE |
protected static java.util.List<java.net.URL> |
THEME_PLUGIN_JARS |
protected static java.util.List<java.lang.Class<?>> |
TOKENIZER_CLASSES |
Modifier and Type | Method and 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) |
protected static boolean |
loadClass(java.lang.String clazz,
java.lang.ClassLoader classLoader) |
protected static boolean |
loadClassOld(java.lang.String sType,
java.lang.String key,
java.lang.ClassLoader classLoader) |
protected static void |
loadFromManifest(java.util.jar.Manifest m,
java.lang.ClassLoader classLoader)
Parse one manifest file.
|
protected static void |
loadFromManifestOld(java.util.jar.Manifest m,
java.lang.ClassLoader classLoader)
Old-style plugin loading.
|
protected static void |
loadFromProperties(java.util.Properties props,
java.lang.ClassLoader classLoader) |
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() |
public static final java.lang.String PLUGINS_LIST_FILE
protected static final java.util.List<java.lang.Class<?>> LOADED_PLUGINS
protected static final java.util.List<java.lang.Class<?>> FILTER_CLASSES
protected static final java.util.List<java.lang.Class<?>> TOKENIZER_CLASSES
protected static final java.util.List<java.lang.Class<?>> MARKER_CLASSES
protected static final java.util.List<java.lang.Class<?>> MACHINE_TRANSLATION_CLASSES
protected static final java.util.List<java.lang.Class<?>> GLOSSARY_CLASSES
protected static final java.util.List<java.lang.Class<?>> BASE_PLUGIN_CLASSES
protected static final java.util.List<java.net.URL> THEME_PLUGIN_JARS
public static void loadPlugins(java.util.Map<java.lang.String,java.lang.String> params)
public static java.util.List<java.lang.Class<?>> getFilterClasses()
public static java.util.List<java.lang.Class<?>> getTokenizerClasses()
public static java.lang.Class<?> getTokenizerClassForLanguage(Language lang)
public static java.util.List<java.lang.Class<?>> getMarkerClasses()
public static java.util.List<java.lang.Class<?>> getMachineTranslationClasses()
public static java.util.List<java.lang.Class<?>> getGlossaryClasses()
public static java.util.List<java.net.URL> getThemePluginJars()
protected static void loadFromManifest(java.util.jar.Manifest m, java.lang.ClassLoader classLoader) throws java.lang.ClassNotFoundException
m
- manifestclassLoader
- classloaderjava.lang.ClassNotFoundException
- when plugin class not found.protected static void loadFromProperties(java.util.Properties props, java.lang.ClassLoader classLoader) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
protected static boolean loadClass(java.lang.String clazz, java.lang.ClassLoader classLoader)
public static void unloadPlugins()
protected static void loadFromManifestOld(java.util.jar.Manifest m, java.lang.ClassLoader classLoader) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
protected static boolean loadClassOld(java.lang.String sType, java.lang.String key, java.lang.ClassLoader classLoader) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
public static java.util.Collection<PluginInformation> getPluginInformations()