|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.logging.log4j.core.config.plugins.PluginManager
public class PluginManager
Component that loads and manages all the plugins.
Nested Class Summary | |
---|---|
static class |
PluginManager.PluginTest
A Test that checks to see if each class is annotated with a specific annotation. |
Constructor Summary | |
---|---|
PluginManager(String type)
Constructor that takes only a type name. |
|
PluginManager(String type,
Class clazz)
Constructor that takes a type name and a Class. |
Method Summary | |
---|---|
static void |
addPackage(String p)
Adds a package name to be scanned for plugins. |
void |
collectPlugins()
Locates all the plugins. |
void |
collectPlugins(boolean preLoad)
Collects plugins, optionally obtaining them from a preload map. |
Map<String,PluginType> |
getPlugins()
Returns all the matching plugins. |
PluginType |
getPluginType(String name)
Returns the type of a specified plugin. |
static void |
main(String[] args)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PluginManager(String type)
type
- The type name.public PluginManager(String type, Class clazz)
type
- The type that must be matched.clazz
- The Class each match must be an instance of.Method Detail |
---|
public static void main(String[] args) throws Exception
Exception
public static void addPackage(String p)
p
- The package name.public PluginType getPluginType(String name)
name
- The name of the plugin.
public Map<String,PluginType> getPlugins()
public void collectPlugins()
public void collectPlugins(boolean preLoad)
preLoad
- if true, plugins will be obtained from the preload map.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |