public class PluginManager extends Object
Constructor and Description |
---|
PluginManager(String category)
Constructs a PluginManager for the plugin category name given.
|
Modifier and Type | Method and Description |
---|---|
static void |
addPackage(String p)
Deprecated.
|
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 |
loadPlugins(ResourceLoader loader) |
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. |
public PluginManager(String category)
category
- The plugin category name.@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.@Deprecated 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.public static void loadPlugins(ResourceLoader loader)
Copyright © 1999-2018 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.