public abstract class BasePlugin extends BaseEngineModule implements org.openksavi.sponge.plugin.Plugin
| Constructor and Description |
|---|
BasePlugin() |
| Modifier and Type | Method and Description |
|---|---|
void |
doShutdown()
Shuts down this managed entity.
|
void |
doStartup()
Starts up this managed entity.
|
org.openksavi.sponge.config.Configuration |
getConfiguration()
Returns plugin configuration.
|
protected org.openksavi.sponge.kb.KnowledgeBaseEngineOperations |
getEngineOperations() |
org.openksavi.sponge.kb.KnowledgeBaseEngineOperations |
getEps() |
org.openksavi.sponge.kb.KnowledgeBase |
getKnowledgeBase() |
org.slf4j.Logger |
getLogger()
Returns the logger.
|
void |
onAfterReload()
After reload callback method.
|
void |
onBeforeReload()
Before reload callback method.
|
void |
onConfigure(org.openksavi.sponge.config.Configuration configuration) |
void |
onInit() |
void |
onShutdown()
On shutdown callback method.
|
void |
onStartup()
On startup callback method.
|
void |
setConfiguration(org.openksavi.sponge.config.Configuration configuration,
boolean configure)
Sets plugin configuration.
|
void |
setKnowledgeBase(org.openksavi.sponge.kb.KnowledgeBase knowledgeBase) |
String |
toString()
Returns string representation.
|
getEngine, getName, getService, getState, isFailed, isNew, isNewOrStartingOrRunning, isRunning, isStarting, isStopping, isTerminated, setEngine, setName, shutdown, startupclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic void setConfiguration(org.openksavi.sponge.config.Configuration configuration,
boolean configure)
setConfiguration in interface org.openksavi.sponge.plugin.Pluginconfiguration - plugin configuration.configure - whether this configuration should be applied immediately.public org.openksavi.sponge.config.Configuration getConfiguration()
getConfiguration in interface org.openksavi.sponge.plugin.Pluginpublic org.openksavi.sponge.kb.KnowledgeBase getKnowledgeBase()
getKnowledgeBase in interface org.openksavi.sponge.plugin.Pluginpublic void setKnowledgeBase(org.openksavi.sponge.kb.KnowledgeBase knowledgeBase)
setKnowledgeBase in interface org.openksavi.sponge.plugin.Pluginpublic final void doStartup()
doStartup in class BaseEngineModulepublic final void doShutdown()
doShutdown in class BaseEngineModulepublic void onStartup()
onStartup in interface org.openksavi.sponge.plugin.Pluginpublic void onShutdown()
onShutdown in interface org.openksavi.sponge.plugin.Pluginpublic void onBeforeReload()
onBeforeReload in interface org.openksavi.sponge.plugin.Pluginpublic void onAfterReload()
onAfterReload in interface org.openksavi.sponge.plugin.Pluginpublic void onInit()
onInit in interface org.openksavi.sponge.plugin.Pluginpublic void onConfigure(org.openksavi.sponge.config.Configuration configuration)
onConfigure in interface org.openksavi.sponge.plugin.Pluginprotected org.openksavi.sponge.kb.KnowledgeBaseEngineOperations getEngineOperations()
public org.openksavi.sponge.kb.KnowledgeBaseEngineOperations getEps()
public String toString()
toString in class BaseEngineModulepublic org.slf4j.Logger getLogger()
Copyright © 2016–2017 Softelnet. All rights reserved.