T
- plugin information object such as PluginType or PluginEntry.public class PluginRegistry<T extends Serializable> extends Object
Constructor and Description |
---|
PluginRegistry() |
Modifier and Type | Method and Description |
---|---|
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.
|
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
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.