public abstract class AbstractRunnerPlugin extends Object implements RunnerPlugin
Constructor and Description |
---|
AbstractRunnerPlugin() |
Modifier and Type | Method and Description |
---|---|
void |
destroy(javax.jcr.Session session)
Shutdown hook
|
boolean |
getBooleanConfigValue(String key,
boolean defaultValue)
Get an boolean value from the embedded
RunnerPluginConfig |
String |
getConfigValue(String key)
Get a value from the embedded
RunnerPluginConfig |
String |
getConfigValue(String key,
String defaultValue)
Get a value from the embedded
RunnerPluginConfig |
String |
getId()
Get the id of the plugin
|
int |
getIntConfigValue(String key,
int defaultValue)
Get an int value from the embedded
RunnerPluginConfig |
long |
getLongConfigValue(String key,
long defaultValue)
Get a long value from the embedded
RunnerPluginConfig |
void |
init(javax.jcr.Session session)
Initialization hook
|
void |
setConfig(RunnerPluginConfig config)
Get the name of the plugin
|
void |
setId(String id)
Get the id of the plugin
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
visit
public void init(javax.jcr.Session session)
RunnerPlugin
init
in interface RunnerPlugin
session
- The jcr sessionpublic void destroy(javax.jcr.Session session)
RunnerPlugin
destroy
in interface RunnerPlugin
session
- The jcr sessionpublic final String getId()
RunnerPlugin
getId
in interface RunnerPlugin
public final void setId(String id)
RunnerPlugin
setId
in interface RunnerPlugin
public final void setConfig(RunnerPluginConfig config)
RunnerPlugin
setConfig
in interface RunnerPlugin
public final String getConfigValue(String key)
RunnerPlugin
RunnerPluginConfig
getConfigValue
in interface RunnerPlugin
key
- the name of the keypublic final String getConfigValue(String key, String defaultValue)
RunnerPlugin
RunnerPluginConfig
getConfigValue
in interface RunnerPlugin
key
- the name of the keydefaultValue
- the default valuepublic final long getLongConfigValue(String key, long defaultValue)
RunnerPlugin
RunnerPluginConfig
getLongConfigValue
in interface RunnerPlugin
key
- the name of the keydefaultValue
- the default valuepublic final int getIntConfigValue(String key, int defaultValue)
RunnerPlugin
RunnerPluginConfig
getIntConfigValue
in interface RunnerPlugin
key
- the name of the keydefaultValue
- the default valuepublic final boolean getBooleanConfigValue(String key, boolean defaultValue)
RunnerPlugin
RunnerPluginConfig
getBooleanConfigValue
in interface RunnerPlugin
key
- the name of the keydefaultValue
- the default valueCopyright © 2007–2018 Hippo. All rights reserved.