public static class Location.LocationBuilder extends Object implements Location.Builder
Constructor and Description |
---|
LocationBuilder() |
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 |
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)
Location.Builder
globalName
in interface Location.Builder
globalName
- the name of the global componentpublic Location.Builder addPart(String part)
Location.Builder
addPart
in interface Location.Builder
part
- the name of the partpublic Location.Builder addConnectionPart()
Location.Builder
Location.CONNECTION
part at the end of the location.
Connection elements within a configuration component must be addressed using a Location.CONNECTION
part.
addConnectionPart
in interface Location.Builder
public Location.Builder addSourcePart()
Location.Builder
Location.SOURCE
part at the end of the location.
Message sources within other component must be addressed using a Location.SOURCE
part.
addSourcePart
in interface Location.Builder
public Location.Builder addProcessorsPart()
Location.Builder
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.
addProcessorsPart
in interface Location.Builder
public Location.Builder addErrorHandlerPart()
Location.Builder
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.
addErrorHandlerPart
in interface Location.Builder
public Location.Builder addIndexPart(int index)
Location.Builder
There cannot be two index parts consecutively.
addIndexPart
in interface Location.Builder
index
- the index of the component.public Location.Builder parts(List<String> parts)
Location.Builder
parts
in interface Location.Builder
parts
- the parts of the locationpublic Location build()
build
in interface Location.Builder
Copyright © 2018. All rights reserved.