public class ScriptingOperationTypeImpl extends Object implements OperationType
Modifier and Type | Field and Description |
---|---|
protected AutomationService |
automation |
protected ScriptingOperationDescriptor |
desc |
protected InvokableMethod |
method |
protected AutomationScriptingServiceImpl |
scripting |
Constructor and Description |
---|
ScriptingOperationTypeImpl(AutomationScriptingServiceImpl scripting,
AutomationService automation,
ScriptingOperationDescriptor desc) |
Modifier and Type | Method and Description |
---|---|
String[] |
getAliases()
The operation ID Aliases array.
|
String |
getContributingComponent()
Gets the name of the component that contributed the operation
|
OperationDocumentation |
getDocumentation() |
String |
getId() |
String |
getInputType()
The input type of a chain/operation.
|
List<InvokableMethod> |
getMethods() |
InvokableMethod[] |
getMethodsMatchingInput(Class<?> in) |
AutomationService |
getService()
Gets the service that registered that type.
|
Class<?> |
getType() |
Object |
newInstance(OperationContext ctx,
Map<String,Object> args) |
protected static InvokableMethod |
runMethod(ScriptingOperationTypeImpl op,
String inputType)
Returns the right
run method according to whether the input type exists or not. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals, hashCode, typeof
protected final AutomationScriptingServiceImpl scripting
protected final AutomationService automation
protected final ScriptingOperationDescriptor desc
protected final InvokableMethod method
public ScriptingOperationTypeImpl(AutomationScriptingServiceImpl scripting, AutomationService automation, ScriptingOperationDescriptor desc)
public String getContributingComponent()
OperationType
getContributingComponent
in interface OperationType
public OperationDocumentation getDocumentation()
getDocumentation
in interface OperationType
public String getId()
getId
in interface OperationType
public String[] getAliases()
OperationType
getAliases
in interface OperationType
public Object newInstance(OperationContext ctx, Map<String,Object> args) throws OperationException
newInstance
in interface OperationType
OperationException
public Class<?> getType()
getType
in interface OperationType
public String getInputType()
OperationType
getInputType
in interface OperationType
public AutomationService getService()
OperationType
getService
in interface OperationType
public InvokableMethod[] getMethodsMatchingInput(Class<?> in)
getMethodsMatchingInput
in interface OperationType
public List<InvokableMethod> getMethods()
getMethods
in interface OperationType
protected static InvokableMethod runMethod(ScriptingOperationTypeImpl op, String inputType)
run
method according to whether the input type exists or not.Copyright © 2018 Nuxeo. All rights reserved.