Class RoutingTarget.RoutingTargetBuilder
java.lang.Object
org.springframework.modulith.events.RoutingTarget.RoutingTargetBuilder
- Enclosing class:
- RoutingTarget
An intermediary to ultimately create
RoutingTarget
instances.- Since:
- 1.1
- Author:
- Oliver Drotbohm
-
Method Summary
Modifier and TypeMethodDescriptionReturns a newRoutingTarget
with the already configured target and the given key.Returns a newRoutingTarget
without a key.
-
Method Details
-
andKey
Returns a newRoutingTarget
with the already configured target and the given key.- Parameters:
key
- must not be null.- Returns:
- will never be null.
-
withoutKey
Returns a newRoutingTarget
without a key.- Returns:
- will never be null.
-