|
||||||||||
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.util.PluginManager
public class PluginManager
Loads and manages all the plugins.
Constructor Summary | |
---|---|
PluginManager(String category)
Constructs a PluginManager for the plugin category name given. |
Method Summary | |
---|---|
static void |
addPackage(String p)
Adds a package name to be scanned for plugins. |
static void |
addPackages(Collection<String> packages)
Adds a list of package names to be scanned for plugins. |
void |
collectPlugins()
Locates all the plugins. |
void |
collectPlugins(List<String> packages)
Locates all the plugins including search of specific packages. |
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)
Deprecated. Use PluginProcessor instead. To do so,
simply include log4j-core in your dependencies and make sure annotation processing is not
disabled. By default, supported Java compilers will automatically use that plugin processor provided
log4j-core is on the classpath. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PluginManager(String category)
category
- The plugin category name.Method Detail |
---|
@Deprecated public static void main(String[] args)
PluginProcessor
instead. To do so,
simply include log4j-core
in your dependencies and make sure annotation processing is not
disabled. By default, supported Java compilers will automatically use that plugin processor provided
log4j-core
is on the classpath.
public static void addPackage(String p)
p
- The package name. Ignored if null
or empty.public static void addPackages(Collection<String> packages)
addPackage(String)
.
packages
- collection of package names to add. Empty and null package names are ignored.public PluginType<?> getPluginType(String name)
name
- The name of the plugin.
public Map<String,PluginType<?>> getPlugins()
public void collectPlugins()
public void collectPlugins(List<String> packages)
packages
- the list of packages to scan for plugins
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1999-2015 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.