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