public class DefaultEventPluginImpl extends Object implements org.azyva.dragom.execcontext.plugin.EventPlugin, org.azyva.dragom.execcontext.plugin.ToolLifeCycleExecContextPlugin
EventPlugin implementation.
The NodeEventListener's must be registered explicitly and are kept in
memory only, either in workspace or tool scope.
ToolLifeCycleExecContextPlugin is implemented so that the plugin is
aware of tool end, so that the NodeEventListener's registered in tool scope can
be discarded.
But NodeEventListener's are not persisted within the workspace and remain instantiated as long as the workspace is cached in memory. NodeEventListener's must be registered whenever a workspace is initialized.
| Constructor and Description |
|---|
DefaultEventPluginImpl(org.azyva.dragom.execcontext.ExecContext execContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
endTool() |
boolean |
isTransient() |
void |
raiseNodeEvent(org.azyva.dragom.model.event.NodeEvent nodeEvent) |
<NodeEventClass extends org.azyva.dragom.model.event.NodeEvent> |
registerListener(org.azyva.dragom.model.Node node,
org.azyva.dragom.model.event.NodeEventListener<NodeEventClass> nodeEventListener,
boolean indChildrenAlso,
boolean indTransient) |
void |
startTool() |
public DefaultEventPluginImpl(org.azyva.dragom.execcontext.ExecContext execContext)
public <NodeEventClass extends org.azyva.dragom.model.event.NodeEvent> void registerListener(org.azyva.dragom.model.Node node,
org.azyva.dragom.model.event.NodeEventListener<NodeEventClass> nodeEventListener,
boolean indChildrenAlso,
boolean indTransient)
registerListener in interface org.azyva.dragom.execcontext.plugin.EventPluginpublic void raiseNodeEvent(org.azyva.dragom.model.event.NodeEvent nodeEvent)
raiseNodeEvent in interface org.azyva.dragom.execcontext.plugin.EventPluginpublic boolean isTransient()
isTransient in interface org.azyva.dragom.execcontext.plugin.ToolLifeCycleExecContextPluginpublic void startTool()
startTool in interface org.azyva.dragom.execcontext.plugin.ToolLifeCycleExecContextPluginpublic void endTool()
endTool in interface org.azyva.dragom.execcontext.plugin.ToolLifeCycleExecContextPluginCopyright © 2015–2016 AZYVA INC.. All rights reserved.