public class PluginCache extends Object
Constructor and Description |
---|
PluginCache() |
Modifier and Type | Method and Description |
---|---|
Map<String,Map<String,PluginEntry>> |
getAllCategories()
Returns all categories of plugins in this cache.
|
Map<String,PluginEntry> |
getCategory(String category)
Gets or creates a category of plugins.
|
void |
loadCacheFiles(Enumeration<URL> resources)
Loads and merges all the Log4j plugin cache files specified.
|
int |
size()
Gets the number of plugin categories registered.
|
void |
writeCache(OutputStream os)
Stores the plugin cache to a given OutputStream.
|
public Map<String,Map<String,PluginEntry>> getAllCategories()
public Map<String,PluginEntry> getCategory(String category)
category
- name of category to look up.public void writeCache(OutputStream os) throws IOException
os
- destination to save cache to.IOException
- if an I/O exception occurs.public void loadCacheFiles(Enumeration<URL> resources) throws IOException
resources
- URLs to all the desired plugin cache files to load.IOException
- if an I/O exception occurs.public int size()
Copyright © 1999-2023 The 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.