public static class Location.Builder extends Object
Location object.
All Location instances must be created using this builder. The builder implementation may not be thread safe but it
is immutable so each method call in the builder returns a new instance so it can be reused.
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
Location.Builder |
addConnectionPart()
Adds a new
Location.CONNECTION part at the end of the location. |
Location.Builder |
addErrorHandlerPart()
Adds a new
Location.ERROR_HANDLER part at the end of the location. |
Location.Builder |
addIndexPart(int index)
Adds a new index part.
|
Location.Builder |
addParameterPart()
Adds a new
Location.PARAMETERS part at the end of the location. |
Location.Builder |
addPart(String part)
Adds a new part at the end of the location.
|
Location.Builder |
addProcessorsPart()
Adds a new
Location.PROCESSORS part at the end of the location. |
Location.Builder |
addSourcePart()
Adds a new
Location.SOURCE part at the end of the location. |
Location |
build() |
Location.Builder |
globalName(String globalName)
Sets the name of the global component.
|
Location.Builder |
parts(List<String> parts)
Adds the parts of this location.
|
public Location.Builder globalName(String globalName)
globalName - the name of the global componentpublic Location.Builder addPart(String part)
part - the name of the partpublic Location.Builder addConnectionPart()
Location.CONNECTION part at the end of the location.
Connection elements within a configuration component must be addressed using a Location.CONNECTION part.
public Location.Builder addSourcePart()
Location.SOURCE part at the end of the location.
Message sources within other component must be addressed using a Location.SOURCE part.
public Location.Builder addProcessorsPart()
Location.PROCESSORS part at the end of the location.
Components that allow nested processors must have Location.PROCESSORS as part before the nested processors indexes.
public Location.Builder addErrorHandlerPart()
Location.ERROR_HANDLER part at the end of the location.
Components that allow nested on-error components must have Location.ERROR_HANDLER as part before the
on-error indexes.
public Location.Builder addParameterPart()
Location.PARAMETERS part at the end of the location.
Components that allow nested parameters must have Location.PARAMETERS as part before the parameter name.
public Location.Builder addIndexPart(int index)
There cannot be two index parts consecutively.
index - the index of the component.public Location.Builder parts(List<String> parts)
parts - the parts of the locationpublic Location build()
Copyright © 2025 MuleSoft, Inc.. All rights reserved.