public interface PluginManager extends Configurable, EngineModule
| Modifier and Type | Method and Description |
|---|---|
void |
addPlugin(Plugin plugin)
Adds the specified plugin.
|
<T extends Plugin> |
getPlugin(Class<T> cls)
Returns the plugin that has the specified type or
null if there is no such plugin. |
<T extends Plugin> |
getPlugin(Class<T> cls,
String name)
Returns the plugin that has the specified name and type or
null if there is no such plugin. |
Plugin |
getPlugin(String name)
Returns a plugin identified by the name.
|
List<Plugin> |
getPlugins()
Returns plugin list.
|
boolean |
hasPlugin(String name)
Checks whether a plugin with the specified name is registered.
|
void |
onAfterReload()
Calls onAfterReload on plugins.
|
void |
onBeforeReload()
Calls onBeforeReload on plugins.
|
void |
removePlugin(Plugin plugin)
Removes the specified plugin.
|
configureisFailed, isNew, isRunning, isStarting, isStopping, isTerminated, shutdown, startupgetDescription, getLabel, getName, setDescription, setLabel, setNameboolean hasPlugin(String name)
name - plugin name.true if the plugin is registered.void addPlugin(Plugin plugin)
plugin - plugin.void removePlugin(Plugin plugin)
plugin - plugin.Plugin getPlugin(String name)
name - plugin name.null if there is no such plugin.<T extends Plugin> T getPlugin(Class<T> cls, String name)
null if there is no such plugin.T - Plugin type.cls - plugin class.name - plugin name.<T extends Plugin> T getPlugin(Class<T> cls)
null if there is no such plugin.T - Plugin type.cls - plugin class.void onBeforeReload()
void onAfterReload()
Copyright © 2016–2020 Softelnet. All rights reserved.