public static class InternalComponentConfiguration.Builder extends Object
ComponentConfiguration instances.| Modifier and Type | Method and Description |
|---|---|
ComponentConfiguration |
build() |
InternalComponentConfiguration |
getComponentConfiguration() |
InternalComponentConfiguration.Builder |
withComponentLocation(org.mule.runtime.api.component.location.ComponentLocation componentLocation) |
InternalComponentConfiguration.Builder |
withIdentifier(org.mule.runtime.api.component.ComponentIdentifier identifier) |
InternalComponentConfiguration.Builder |
withNestedComponent(ComponentConfiguration nestedComponent)
Adds a complex configuration parameter to the component.
|
InternalComponentConfiguration.Builder |
withParameter(String name,
String value)
Adds a configuration parameter to the component
|
InternalComponentConfiguration.Builder |
withProperty(String name,
Object value)
Adds a property to the
ComponentConfiguration. |
InternalComponentConfiguration.Builder |
withValue(String textContent)
Sets the inner content of the configuration element.
|
public InternalComponentConfiguration getComponentConfiguration()
public InternalComponentConfiguration.Builder withIdentifier(org.mule.runtime.api.component.ComponentIdentifier identifier)
identifier - identifier for the configuration element this object represents.public InternalComponentConfiguration.Builder withParameter(String name, String value)
name - configuration attribute namevalue - configuration attribute valuepublic InternalComponentConfiguration.Builder withValue(String textContent)
textContent - inner text content from the configurationpublic InternalComponentConfiguration.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 InternalComponentConfiguration.Builder withComponentLocation(org.mule.runtime.api.component.location.ComponentLocation componentLocation)
componentLocation - the location of the component in the configuration.public InternalComponentConfiguration.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 InternalComponentConfiguration.Builderpublic ComponentConfiguration build()
ComponentConfiguration with the provided configurationCopyright © 2020 MuleSoft, Inc.. All rights reserved.