public final class OperationConstruct extends Object implements Construct, HasCapabilities<OperationConstruct>
Construct which allows configuring a OperationDeclaration
through a fluent API| Modifier and Type | Method and Description |
|---|---|
protected void |
addParameter(ParameterDeclaration parameter)
Adds a
ParameterDeclaration |
OperationConstruct |
describedAs(String description)
Adds a description
|
OperationConstruct |
executorsCreatedBy(OperationExecutorFactory executorFactory)
Specifies the
OperationExecutorFactory to be used
to create OperationExecutor instances. |
DeclarationConstruct |
getRootConstruct()
Returns the root element of this construct
|
WithParameters |
with() |
OperationConstruct |
withCapability(Object capability)
Adds the given capability to the declaring operation
|
ConfigurationConstruct |
withConfig(String name)
Adds another configuration to the root
DeclarationConstruct |
OperationConstruct |
withOperation(String name)
Adds another operation to the root
DeclarationConstruct |
public OperationConstruct describedAs(String description)
description - a descriptionpublic WithParameters with()
WithParameters which allows adding ParameterDeclaration
to this constructprotected void addParameter(ParameterDeclaration parameter)
ParameterDeclarationparameter - a ParameterDeclarationpublic DeclarationConstruct getRootConstruct()
ConstructgetRootConstruct in interface ConstructDeclarationConstructpublic OperationConstruct executorsCreatedBy(OperationExecutorFactory executorFactory)
OperationExecutorFactory to be used
to create OperationExecutor instances.executorFactory - a OperationExecutorFactorypublic OperationConstruct withOperation(String name)
DeclarationConstructname - the name of the operationOperationConstructpublic ConfigurationConstruct withConfig(String name)
DeclarationConstructname - the name of the configurationConfigurationConstructpublic OperationConstruct withCapability(Object capability)
withCapability in interface HasCapabilities<OperationConstruct>capability - a not null capabilityCopyright © 2015 MuleSoft, Inc.. All rights reserved.