public static class ComponentConfiguration.Builder extends Object
ComponentConfiguration instances.| Modifier and Type | Method and Description |
|---|---|
ComponentConfiguration |
build() |
ComponentConfiguration.Builder |
withIdentifier(org.mule.runtime.api.component.ComponentIdentifier identifier) |
ComponentConfiguration.Builder |
withNestedComponent(ComponentConfiguration nestedComponent)
Adds a complex configuration parameter to the component.
|
ComponentConfiguration.Builder |
withParameter(String name,
String value)
Adds a configuration parameter to the component
|
ComponentConfiguration.Builder |
withProperty(String name,
Object value)
Adds a property to the
ComponentConfiguration. |
ComponentConfiguration.Builder |
withValue(String textContent)
Sets the inner content of the configuration element.
|
public ComponentConfiguration.Builder withIdentifier(org.mule.runtime.api.component.ComponentIdentifier identifier)
identifier - identifier for the configuration element this object represents.public ComponentConfiguration.Builder withParameter(String name, String value)
name - configuration attribute namevalue - configuration attribute valuepublic ComponentConfiguration.Builder withValue(String textContent)
textContent - inner text content from the configurationpublic ComponentConfiguration.Builder withProperty(String name, Object value)
ComponentConfiguration.
This property is meant to hold only metadata of the configuration.name - custom attribute name.value - custom attribute value.public ComponentConfiguration.Builder withNestedComponent(ComponentConfiguration nestedComponent)
For instance, to define a file:matcher for a file:read component: *
<file:read>
<file:matcher regex="XYZ"/>
</file:read>
nestedComponent - the ComponentConfiguration that represents the nested configurationthis ComponentConfiguration.Builderpublic ComponentConfiguration build()
ComponentConfiguration with the provided configurationCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.