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.
  • Method Details

    • 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