public class PluginRegistry extends Object
Modifier and Type | Class and Description |
---|---|
static class |
PluginRegistry.PluginTest
A Test that checks to see if each class is annotated with the 'Plugin' annotation.
|
Modifier and Type | Method and 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) |
public static PluginRegistry getInstance()
public void clear()
public Map<Long,Map<String,List<PluginType<?>>>> getPluginsByCategoryByBundleId()
public Map<String,List<PluginType<?>>> loadFromMainClassLoader()
public void clearBundlePlugins(long bundleId)
public Map<String,List<PluginType<?>>> loadFromBundle(long bundleId, ClassLoader loader)
public Map<String,List<PluginType<?>>> loadFromPackage(String pkg)
Copyright © 1999-2023 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.