public final class OperationDescriptor extends Object implements Descriptor, HasCapabilities<OperationDescriptor>
Descriptor which allows configuring a OperationDeclaration
through a fluent API| Modifier and Type | Method and Description |
|---|---|
protected void |
addParameter(ParameterDeclaration parameter)
Adds a
ParameterDeclaration |
OperationDescriptor |
describedAs(String description)
Adds a description
|
OperationDescriptor |
executorsCreatedBy(OperationExecutorFactory executorFactory)
Specifies the
OperationExecutorFactory to be used
to create OperationExecutor instances. |
DeclarationDescriptor |
getRootDeclaration()
Returns the root element of this declaration
|
WithParameters |
with() |
OperationDescriptor |
withCapability(Object capability)
Adds the given capability to the declaring operation
|
ConfigurationDescriptor |
withConfig(String name)
Adds another configuration to the root
DeclarationDescriptor |
OperationDescriptor |
withOperation(String name)
Adds another operation to the root
DeclarationDescriptor |
public OperationDescriptor describedAs(String description)
description - a descriptionpublic WithParameters with()
WithParameters which allows adding ParameterDeclaration
to this descriptorprotected void addParameter(ParameterDeclaration parameter)
ParameterDeclarationparameter - a ParameterDeclarationpublic DeclarationDescriptor getRootDeclaration()
DescriptorgetRootDeclaration in interface DescriptorDeclarationDescriptorpublic OperationDescriptor executorsCreatedBy(OperationExecutorFactory executorFactory)
OperationExecutorFactory to be used
to create OperationExecutor instances.executorFactory - a OperationExecutorFactorypublic OperationDescriptor withOperation(String name)
DeclarationDescriptorname - the name of the operationOperationDescriptorpublic ConfigurationDescriptor withConfig(String name)
DeclarationDescriptorname - the name of the configurationConfigurationDescriptorpublic OperationDescriptor withCapability(Object capability)
withCapability in interface HasCapabilities<OperationDescriptor>capability - a not null capabilityCopyright © 2015 MuleSoft, Inc.. All rights reserved.