public static class ComponentConfiguration.Builder extends Object
ComponentConfiguration instances.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
ComponentConfiguration.Builder |
addNestedConfiguration(ComponentConfiguration componentConfiguration)
Adds a complex configuration parameter to the component.
|
ComponentConfiguration.Builder |
addParameter(String name,
String value)
Adds a configuration parameter to the component
|
ComponentConfiguration |
build() |
ComponentConfiguration.Builder |
setIdentifier(String identifier) |
ComponentConfiguration.Builder |
setNamespace(String namespace) |
ComponentConfiguration.Builder |
setTextContent(String textContent)
Sets the inner content of the configuration element.
|
public ComponentConfiguration.Builder setNamespace(String namespace)
namespace - the namespace where the component is located. i.e.: In file:read the namespace is filepublic ComponentConfiguration.Builder setIdentifier(String identifier)
identifier - the identifier of the component. i.e.: In file:read the identifier is read.public ComponentConfiguration.Builder addParameter(String name, String value)
name - configuration attribute namevalue - configuration attribute valuepublic ComponentConfiguration.Builder setTextContent(String textContent)
textContent - inner text content from the configurationpublic ComponentConfiguration.Builder addNestedConfiguration(ComponentConfiguration componentConfiguration)
For instance, to define a file:matcher for a file:read component: *
<file:read>
<file:matcher regex="XYZ"/>
</file:read>
componentConfiguration - public ComponentConfiguration build()
ComponentConfiguration with the provided configurationCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.