public class SourceDeclarer extends ExecutableComponentDeclarer<SourceDeclarer,SourceDeclaration>
SourceDeclaration through a fluent APIdeclaration| Modifier and Type | Method and Description |
|---|---|
SourceDeclarer |
hasResponse(boolean hasResponse)
Allows to specify if the declared source emits responses
|
SourceCallbackDeclarer |
onError()
Allows to declare a callback which will listen for errors that occurred in the flow
processing a Source generated message.
|
SourceCallbackDeclarer |
onSuccess()
Allows to declare a callback which will listen to all the successful results of the dispatched
Source messages to the flow.
|
SourceCallbackDeclarer |
onTerminate()
Allows to declare a callback which will listen to all the results of the dispatched
Source messages to the flow.
|
NestedChainDeclarer |
withChain()
Adds a component of the given
name |
NestedChainDeclarer |
withChain(String chainName)
Adds a component of the given
name |
NestedComponentDeclarer |
withComponent(String nestedComponentName)
Adds a component of the given
name |
T |
withModelProperty(ModelProperty modelProperty)
Adds the given
modelProperty |
NestedComponentDeclarer |
withOptionalComponent(String nestedComponentName)
Adds a component of the given
name |
NestedRouteDeclarer |
withRoute(String routeName)
Adds a component of the given
name |
T |
withStereotype(StereotypeModel stereotype)
Adds the given
stereotype |
requiresConnection, supportsStreaming, transactional, withErrorModel, withOutput, withOutputAttributesdescribedAs, onDefaultParameterGroup, onParameterGroupgetDeclarationpublic SourceDeclarer hasResponse(boolean hasResponse)
hasResponse - Whether the declared source emits a responsethis declarerpublic SourceCallbackDeclarer onSuccess()
SourceCallbackDeclarerpublic SourceCallbackDeclarer onError()
SourceCallbackDeclarerpublic SourceCallbackDeclarer onTerminate()
onSuccess() ()} and onError() callbacks.SourceCallbackDeclarerpublic NestedComponentDeclarer withOptionalComponent(String nestedComponentName)
namewithOptionalComponent in interface HasNestedComponentsnestedComponentName - a non blank nameNestedComponentDeclarer which allows describing the created componentpublic NestedComponentDeclarer withComponent(String nestedComponentName)
namewithComponent in interface HasNestedComponentsnestedComponentName - a non blank nameNestedComponentDeclarer which allows describing the created componentpublic NestedChainDeclarer withChain()
namewithChain in interface HasNestedComponentsNestedComponentDeclarer which allows describing the created componentpublic NestedChainDeclarer withChain(String chainName)
namewithChain in interface HasNestedComponentschainName - a non blank nameNestedComponentDeclarer which allows describing the created componentpublic NestedRouteDeclarer withRoute(String routeName)
namewithRoute in interface HasNestedRoutesrouteName - a non blank nameNestedComponentDeclarer which allows describing the created componentpublic T withStereotype(StereotypeModel stereotype)
stereotypestereotype - a StereotypeModelthis declarerpublic T withModelProperty(ModelProperty modelProperty)
modelPropertywithModelProperty in interface HasModelProperties<org.mule.runtime.api.meta.model.declaration.fluent.ComponentDeclarer>modelProperty - a ModelPropertythis declarerCopyright © 2017 MuleSoft, Inc.. All rights reserved.