public static interface Location.Builder
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.
| 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.
|
Location.Builder globalName(String globalName)
globalName - the name of the global componentLocation.Builder addPart(String part)
part - the name of the partLocation.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.
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.
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.
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.
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.
Location.Builder addIndexPart(int index)
There cannot be two index parts consecutively.
index - the index of the component.Location.Builder parts(List<String> parts)
parts - the parts of the locationLocation build()
Copyright © 2017 MuleSoft, Inc.. All rights reserved.