public class OperationTypeImpl extends Object implements OperationType
Modifier and Type | Field and Description |
---|---|
protected String[] |
aliases
The operation ID Aliases array.
|
protected String |
contributingComponent |
protected String |
id
The operation ID - used for lookups.
|
protected List<Field> |
injectableFields
Fields that should be injected from context
|
protected String |
inputType
The input type of a chain/operation.
|
protected List<InvokableMethod> |
methods
Invocable methods
|
protected Map<String,Field> |
params
Injectable parameters.
|
protected AutomationService |
service
The service that registered the operation
|
protected Class<?> |
type
The operation type
|
protected List<WidgetDefinition> |
widgetDefinitionList |
Constructor and Description |
---|
OperationTypeImpl() |
OperationTypeImpl(AutomationService service,
Class<?> type) |
OperationTypeImpl(AutomationService service,
Class<?> type,
String contributingComponent) |
OperationTypeImpl(AutomationService service,
Class<?> type,
String contributingComponent,
List<WidgetDefinition> widgetDefinitionList) |
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) |
protected String |
getParamDocumentationType(Class<?> type) |
protected String |
getParamDocumentationType(Class<?> type,
boolean isIterable) |
AutomationService |
getService()
Gets the service that registered that type.
|
Class<?> |
getType() |
protected void |
initFields() |
protected void |
initMethods() |
void |
inject(OperationContext ctx,
Map<String,Object> args,
Object target) |
Object |
newInstance(OperationContext ctx,
Map<String,Object> args) |
protected Object |
resolveObject(OperationContext ctx,
String key,
Map<String,Object> args) |
String |
toString() |
protected AutomationService service
protected Map<String,Field> params
protected List<InvokableMethod> methods
protected List<Field> injectableFields
protected String inputType
protected String contributingComponent
protected List<WidgetDefinition> widgetDefinitionList
public OperationTypeImpl(AutomationService service, Class<?> type)
public OperationTypeImpl(AutomationService service, Class<?> type, String contributingComponent)
public OperationTypeImpl(AutomationService service, Class<?> type, String contributingComponent, List<WidgetDefinition> widgetDefinitionList)
public OperationTypeImpl()
public AutomationService getService()
OperationType
getService
in interface OperationType
public String getId()
getId
in interface OperationType
public String[] getAliases()
OperationType
getAliases
in interface OperationType
public Class<?> getType()
getType
in interface OperationType
public String getInputType()
OperationType
getInputType
in interface OperationType
protected void initMethods()
protected void initFields()
public Object newInstance(OperationContext ctx, Map<String,Object> args) throws OperationException
newInstance
in interface OperationType
OperationException
protected Object resolveObject(OperationContext ctx, String key, Map<String,Object> args)
public void inject(OperationContext ctx, Map<String,Object> args, Object target) throws OperationException
OperationException
public InvokableMethod[] getMethodsMatchingInput(Class<?> in)
getMethodsMatchingInput
in interface OperationType
public OperationDocumentation getDocumentation()
getDocumentation
in interface OperationType
public String getContributingComponent()
OperationType
getContributingComponent
in interface OperationType
protected String getParamDocumentationType(Class<?> type)
protected String getParamDocumentationType(Class<?> type, boolean isIterable)
public List<InvokableMethod> getMethods()
getMethods
in interface OperationType
Copyright © 2016 Nuxeo SA. All rights reserved.