public class NodeStepPluginAdapter extends java.lang.Object implements NodeStepExecutor, Describable, DynamicProperties
NodeStepPlugin
instance to perform the
execution.Modifier and Type | Class and Description |
---|---|
static class |
NodeStepPluginAdapter.ConvertToNodeStepExecutor |
Modifier and Type | Field and Description |
---|---|
static NodeStepPluginAdapter.ConvertToNodeStepExecutor |
CONVERT_TO_NODE_STEP_EXECUTOR |
protected static org.slf4j.Logger |
log |
Constructor and Description |
---|
NodeStepPluginAdapter(NodeStepPlugin plugin) |
NodeStepPluginAdapter(java.lang.String serviceName,
NodeStepPlugin plugin,
boolean blankIfUnexpanded) |
Modifier and Type | Method and Description |
---|---|
static boolean |
canAdaptType(java.lang.Class<?> testType) |
java.util.Map<java.lang.String,java.lang.Object> |
createConfig(StepExecutionContext context,
NodeStepExecutionItem item,
INodeEntry node) |
java.util.Map<java.lang.String,java.lang.Object> |
dynamicProperties(java.util.Map<java.lang.String,java.lang.Object> projectAndFrameworkValues,
Services services)
Return dynamic allowed values for config properties, keyed by property name
|
NodeStepResult |
executeNodeStep(StepExecutionContext context,
NodeStepExecutionItem item,
INodeEntry node)
Execute the step
|
Description |
getDescription() |
NodeStepPlugin |
getPlugin() |
java.lang.String |
getServiceName() |
java.util.Map<java.lang.String,java.lang.Object> |
getStepConfiguration(StepExecutionItem item) |
void |
setServiceName(java.lang.String serviceName) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dynamicProperties
protected static org.slf4j.Logger log
public static final NodeStepPluginAdapter.ConvertToNodeStepExecutor CONVERT_TO_NODE_STEP_EXECUTOR
public NodeStepPluginAdapter(NodeStepPlugin plugin)
public NodeStepPluginAdapter(java.lang.String serviceName, NodeStepPlugin plugin, boolean blankIfUnexpanded)
public Description getDescription()
getDescription
in interface Describable
public java.util.Map<java.lang.String,java.lang.Object> dynamicProperties(java.util.Map<java.lang.String,java.lang.Object> projectAndFrameworkValues, Services services)
DynamicProperties
dynamicProperties
in interface DynamicProperties
projectAndFrameworkValues
- config values for this plugin resolved from the framework/projectservices
- authorized services accesspublic static boolean canAdaptType(java.lang.Class<?> testType)
public java.lang.String getServiceName()
public void setServiceName(java.lang.String serviceName)
public NodeStepResult executeNodeStep(StepExecutionContext context, NodeStepExecutionItem item, INodeEntry node) throws NodeStepException
NodeStepExecutor
executeNodeStep
in interface NodeStepExecutor
context
- contextitem
- step itemnode
- nodeNodeStepException
- on step errorpublic java.util.Map<java.lang.String,java.lang.Object> createConfig(StepExecutionContext context, NodeStepExecutionItem item, INodeEntry node)
public java.util.Map<java.lang.String,java.lang.Object> getStepConfiguration(StepExecutionItem item)
public NodeStepPlugin getPlugin()