public abstract class Plugin extends Object implements IPlugin
IPluginContext
and IPluginConfig
.Constructor and Description |
---|
Plugin(IPluginContext context,
IPluginConfig config)
Construct a new Plugin.
|
Modifier and Type | Method and Description |
---|---|
protected IPluginConfig |
getPluginConfig()
The
IPluginConfig for the plugin. |
protected IPluginContext |
getPluginContext()
The
IPluginContext for the plugin. |
void |
start()
This method can be implemented by plugins to delay part of the initialization until
subclasses have finished their construction.
|
void |
stop()
Release references to external resources.
|
public Plugin(IPluginContext context, IPluginConfig config)
context
- the plugin contextconfig
- the plugin configprotected IPluginContext getPluginContext()
IPluginContext
for the plugin.protected IPluginConfig getPluginConfig()
IPluginConfig
for the plugin.public void start()
IPlugin
Copyright © 2007–2017 Hippo B.V. (http://www.onehippo.com). All rights reserved.