Class PluginRegistry
- java.lang.Object
-
- org.apache.logging.log4j.core.config.plugins.util.PluginRegistry
-
public class PluginRegistry extends Object
Registry singleton for PluginType maps partitioned by source type and then by category names.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PluginRegistry.PluginTest
A Test that checks to see if each class is annotated with the 'Plugin' annotation.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
Resets the registry to an empty state.void
clearBundlePlugins(long bundleId)
static PluginRegistry
getInstance()
Returns the global PluginRegistry instance.Map<Long,Map<String,List<PluginType<?>>>>
getPluginsByCategoryByBundleId()
Map<String,List<PluginType<?>>>
loadFromBundle(long bundleId, ClassLoader loader)
Map<String,List<PluginType<?>>>
loadFromMainClassLoader()
Map<String,List<PluginType<?>>>
loadFromPackage(String pkg)
-
-
-
Method Detail
-
getInstance
public static PluginRegistry getInstance()
Returns the global PluginRegistry instance.- Returns:
- the global PluginRegistry instance.
- Since:
- 2.1
-
clear
public void clear()
Resets the registry to an empty state.
-
getPluginsByCategoryByBundleId
public Map<Long,Map<String,List<PluginType<?>>>> getPluginsByCategoryByBundleId()
- Since:
- 2.1
-
loadFromMainClassLoader
public Map<String,List<PluginType<?>>> loadFromMainClassLoader()
- Since:
- 2.1
-
clearBundlePlugins
public void clearBundlePlugins(long bundleId)
- Since:
- 2.1
-
loadFromBundle
public Map<String,List<PluginType<?>>> loadFromBundle(long bundleId, ClassLoader loader)
- Since:
- 2.1
-
loadFromPackage
public Map<String,List<PluginType<?>>> loadFromPackage(String pkg)
- Since:
- 2.1
-
-