public interface NodeDelegate extends ExtensionObjectDelegate
ExtensionProcessor
instance.
The implementing class must declare a no-argument constructor.
The path of the implementing class is specified in the "delegate" attribute of the relevant Node
element in the extension.xml file.ExtensionProcessor
Modifier and Type | Method and Description |
---|---|
void |
disposeNodeDelegate(NodeContext nodeContext)
Called when an
ExtensionProcessor is being disposed of. |
ExecutionHandler |
getExecutionHandler(NodeContext nodeContext,
ExecutionContext executionContext)
Returns the execution handler that is responsible for generating the execution plan or
null if the execution method is defined directly in the extension XML. |
DataModel |
getOutputDataModel(DataModel inputDataModel,
Properties properties,
NodeContext nodeContext)
Returns the output data model for a given input data model and
set of properties.
|
void |
initNodeDelegate(NodeContext nodeContext)
Called when an
ExtensionProcessor is being initialised. |
onExtensionObjectEvent
void initNodeDelegate(NodeContext nodeContext)
ExtensionProcessor
is being initialised.nodeContext
- the node contextvoid disposeNodeDelegate(NodeContext nodeContext)
ExtensionProcessor
is being disposed of. This allows a delegate
to dispose of any system resources it has allocated during its lifetime.nodeContext
- the node contextDataModel getOutputDataModel(DataModel inputDataModel, Properties properties, NodeContext nodeContext) throws ExtensionException
inputDataModel
- the input data modelproperties
- the current property settingsnodeContext
- the node contextExtensionException
- if the data model cannot be computed for some reasonExecutionHandler getExecutionHandler(NodeContext nodeContext, ExecutionContext executionContext)
null
if the execution method is defined directly in the extension XML. The
supplied execution context should be used as a hint for which execution handler to return
and may not necessarily be the same execution context that gets passed to that handler.nodeContext
- the node contextexecutionContext
- an execution context to be used as a hint for which execution handler to returnnull
(C) Copyright IBM Corp. 1994, 2015. All Rights Reserved.