Class PluginCache
java.lang.Object
org.apache.logging.log4j.core.config.plugins.processor.PluginCache
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturns all categories of plugins in this cache.getCategory(String category) Gets or creates a category of plugins.voidloadCacheFiles(Enumeration<URL> resources) Loads and merges all the Log4j plugin cache files specified.intsize()Gets the number of plugin categories registered.voidStores the plugin cache to a given OutputStream.
- 
Constructor Details- 
PluginCachepublic PluginCache()
 
- 
- 
Method Details- 
getAllCategoriesReturns all categories of plugins in this cache.- Returns:
- all categories of plugins in this cache.
- Since:
- 2.1
 
- 
getCategoryGets or creates a category of plugins.- Parameters:
- category- name of category to look up.
- Returns:
- plugin mapping of names to plugin entries.
 
- 
writeCacheStores the plugin cache to a given OutputStream.- Parameters:
- os- destination to save cache to.
- Throws:
- IOException- if an I/O exception occurs.
 
- 
loadCacheFilesLoads and merges all the Log4j plugin cache files specified. Usually, this is obtained via a ClassLoader.- Parameters:
- resources- URLs to all the desired plugin cache files to load.
- Throws:
- IOException- if an I/O exception occurs.
 
- 
sizepublic int size()Gets the number of plugin categories registered.- Returns:
- number of plugin categories in cache.
 
 
-