Package com.netscape.cmscore.registry
Class PluginRegistry
java.lang.Object
com.netscape.cmscore.registry.PluginRegistry
This represents the registry subsystem that manages
mulitple types of plugin information.
The plugin information includes id, name,
classname, and description.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPluginInfo
(String type, String id, IPluginInfo info) void
addPluginInfo
(String type, String id, IPluginInfo info, int saveConfig) Returns a list of identifiers of the given type.getPluginInfo
(String type, String id) Retrieves the plugin information.Returns all type names.void
init
(ConfigStore config, String defaultRegistryFile) Initializes this subsystem with the given configuration store.void
loadPlugin
(String type, String id) Load plugins of the given type.void
loadPlugins
(String type) Load plugins of the given type.void
rebuildConfigStore
(Locale locale) void
removePluginInfo
(String type, String id) void
shutdown()
Stops this system.void
startup()
Notifies this subsystem if owner is in running mode.
-
Field Details
-
logger
public static org.slf4j.Logger logger -
ID
- See Also:
-
-
Constructor Details
-
PluginRegistry
public PluginRegistry()
-
-
Method Details
-
init
Initializes this subsystem with the given configuration store.- Parameters:
config
- configuration store- Throws:
EBaseException
- failed to initializeException
-
loadPlugins
Load plugins of the given type.- Throws:
EBaseException
-
loadPlugin
Load plugins of the given type.- Throws:
EBaseException
-
removePluginInfo
- Throws:
ERegistryException
-
addPluginInfo
- Throws:
ERegistryException
-
addPluginInfo
public void addPluginInfo(String type, String id, IPluginInfo info, int saveConfig) throws ERegistryException - Throws:
ERegistryException
-
rebuildConfigStore
- Throws:
ERegistryException
-
startup
Notifies this subsystem if owner is in running mode.- Throws:
EBaseException
-
shutdown
public void shutdown()Stops this system. The owner may call shutdown anytime after initialization. -
getTypeNames
Returns all type names. -
getIds
Returns a list of identifiers of the given type. -
getPluginInfo
Retrieves the plugin information.
-