public final class PluginService extends Object
Modifier and Type | Method and Description |
---|---|
static Plugin |
getCore()
Gets the core.
|
static Plugin |
getPlugin(String strPluginName)
Returns a Plugin object from its name
|
static Collection<Plugin> |
getPluginList()
Returns the plugins file list
|
static void |
init()
Initialize the service
|
static boolean |
isPluginEnable(String strPluginName)
Gets the plugin status enable / disable
|
static void |
notifyListeners(PluginEvent event)
Notify an event to all Plugin Event Listeners
|
static void |
registerPluginEventListener(PluginEventListener listener)
Register a Plugin Event Listener
|
static void |
updatePluginData(Plugin plugin)
Update plugins data.
|
public static void init() throws LuteceInitException
LuteceInitException
- If an error occuredpublic static Collection<Plugin> getPluginList()
public static Plugin getPlugin(String strPluginName)
strPluginName
- The name of the pluginpublic static Plugin getCore()
public static void updatePluginData(Plugin plugin)
plugin
- The plugin objectpublic static boolean isPluginEnable(String strPluginName)
strPluginName
- The plugin namepublic static void registerPluginEventListener(PluginEventListener listener)
listener
- The listenerpublic static void notifyListeners(PluginEvent event)
event
- The eventCopyright © 2020 City of Paris. All rights reserved.