|
Log4j 1.3alpha-8 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.log4j.plugins.PluginRegistry
This is a registry for Plugin instances. It provides methods to start and stop plugin objects individually and to stop all plugins for a repository.
Constructor Summary | |
PluginRegistry(LoggerRepositoryEx loggerRepository)
|
Method Summary | |
void |
addPlugin(Plugin plugin)
Adds a plugin to the plugin registry. |
void |
addPluginListener(PluginListener l)
Adds a PluginListener to this registry to be notified of PluginEvents |
LoggerRepositoryEx |
getLoggerRepository()
|
List |
getPlugins()
Returns all the plugins for a given repository. |
List |
getPlugins(Class pluginClass)
Returns all the plugins for a given repository that are instances of a certain class. |
boolean |
pluginNameExists(String name)
Returns true if the specified name is already taken by an existing Plugin registered within the scope of the specified LoggerRepository. |
void |
removePluginListener(PluginListener l)
Removes a particular PluginListener from this registry such that it will no longer be notified of PluginEvents |
void |
stopAllPlugins()
Stops all plugins in the given logger repository. |
Plugin |
stopPlugin(String pluginName)
Stops a plugin by plugin name and repository. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PluginRegistry(LoggerRepositoryEx loggerRepository)
Method Detail |
public LoggerRepositoryEx getLoggerRepository()
public boolean pluginNameExists(String name)
name
- The name to check the repository forpublic void addPlugin(Plugin plugin)
plugin
- the plugin to add.public List getPlugins()
public List getPlugins(Class pluginClass)
pluginClass
- the class the plugin must implement to be selected.public Plugin stopPlugin(String pluginName)
pluginName
- the name of the plugin to stop.public void stopAllPlugins()
public final void addPluginListener(PluginListener l)
l
- PluginListener to add to this registrypublic final void removePluginListener(PluginListener l)
l
- PluginListener to remove
|
Log4j 1.3alpha-8 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |