|
||||||||||
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.PluginRegistry<T>
T
- plugin information object such as PluginType or PluginEntry.public class PluginRegistry<T extends Serializable>
Registry for PluginType maps partitioned by category names.
Constructor Summary | |
---|---|
PluginRegistry()
|
Method Summary | |
---|---|
void |
clear()
Resets the registry to an empty state. |
Set<Map.Entry<String,ConcurrentMap<String,T>>> |
getCategories()
Gets an entry set for iterating over the registered plugin categories. |
ConcurrentMap<String,T> |
getCategory(String category)
Gets or creates a plugin category if not already available. |
int |
getCategoryCount()
Returns the number of plugin categories currently available. |
boolean |
hasCategory(String category)
Indicates whether or not the given category name is registered and has plugins in that category. |
boolean |
isEmpty()
Indicates whether or not any plugin categories have been registered. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PluginRegistry()
Method Detail |
---|
public ConcurrentMap<String,T> getCategory(String category)
category
- the plugin category to look up or create.
IllegalArgumentException
- if the argument is null
public int getCategoryCount()
public boolean isEmpty()
true
if there any categories registered.public void clear()
public boolean hasCategory(String category)
category
- the plugin category name to check.
true
if the category exists and has plugins registered.
IllegalArgumentException
- if the argument is null
public Set<Map.Entry<String,ConcurrentMap<String,T>>> getCategories()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1999-2014 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.