Class PluginRegistry
java.lang.Object
org.apache.logging.log4j.core.config.plugins.util.PluginRegistry
Registry singleton for PluginType maps partitioned by source type and then by category names.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A Test that checks to see if each class is annotated with the 'Plugin' annotation. -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Resets the registry to an empty state.void
clearBundlePlugins
(long bundleId) static PluginRegistry
Returns the global PluginRegistry instance.Map<String,
List<PluginType<?>>> loadFromBundle
(long bundleId, ClassLoader loader) Map<String,
List<PluginType<?>>> Map<String,
List<PluginType<?>>> loadFromPackage
(String pkg)
-
Method Details
-
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
- Since:
- 2.1
-
loadFromMainClassLoader
- Since:
- 2.1
-
clearBundlePlugins
public void clearBundlePlugins(long bundleId) - Since:
- 2.1
-
loadFromBundle
- Since:
- 2.1
-
loadFromPackage
- Since:
- 2.1
-