Interface ResponseSerializationStep1Builder
-
- All Known Implementing Classes:
UseCaseInvocationBuilder
public interface ResponseSerializationStep1Builder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default <T> ResponseSerializationStep2Builder<T>serializingResponseObjectsOfTypeVoid()Enters a fluent builder that configures aMapifierthat will be used to serialize a use case return value of typenull.ExceptionSerializationStep1BuilderserializingUseCaseResponseBackOntoTheBusByDefaultUsing(Mapifier<Object> mapper)Configures the defaultMapifierthat will be used to serialize a use case return value onto theMessageBusif noMapifierconfigured matches the use case return value.default <T> ResponseSerializationStep2Builder<T>serializingUseCaseResponseBackOntoTheBusOfType(Class<T> type)Enters a fluent builder that configures aMapifierthat will be used to serialize a use case return value onto theMessageBusif the use case return value is of the specified type.ResponseSerializationStep2Builder<Object>serializingUseCaseResponseBackOntoTheBusThat(Predicate<Object> filter)Enters a fluent builder that configures aMapifierthat will be used to serialize a use case return value onto theMessageBusif the use case return value matches the providedfilter.default ExceptionSerializationStep1BuilderthrowingAnExceptionByDefaultIfNoResponseSerializationCanBeApplied()Configures to throw an exception if noMapifierconfigured matches the use case return value.
-
-
-
Method Detail
-
serializingUseCaseResponseBackOntoTheBusOfType
default <T> ResponseSerializationStep2Builder<T> serializingUseCaseResponseBackOntoTheBusOfType(Class<T> type)
Enters a fluent builder that configures aMapifierthat will be used to serialize a use case return value onto theMessageBusif the use case return value is of the specified type.- Type Parameters:
T- the type of the response- Parameters:
type- the class of use case response that will be serialized by theMapifier- Returns:
- the next step in the fluent builder
-
serializingResponseObjectsOfTypeVoid
default <T> ResponseSerializationStep2Builder<T> serializingResponseObjectsOfTypeVoid()
Enters a fluent builder that configures aMapifierthat will be used to serialize a use case return value of typenull.- Type Parameters:
T- the type of the follow up builder- Returns:
- the next step in the fluent builder
-
serializingUseCaseResponseBackOntoTheBusThat
ResponseSerializationStep2Builder<Object> serializingUseCaseResponseBackOntoTheBusThat(Predicate<Object> filter)
Enters a fluent builder that configures aMapifierthat will be used to serialize a use case return value onto theMessageBusif the use case return value matches the providedfilter.
-
throwingAnExceptionByDefaultIfNoResponseSerializationCanBeApplied
default ExceptionSerializationStep1Builder throwingAnExceptionByDefaultIfNoResponseSerializationCanBeApplied()
Configures to throw an exception if noMapifierconfigured matches the use case return value.- Returns:
- the next step in the fluent builder
-
serializingUseCaseResponseBackOntoTheBusByDefaultUsing
ExceptionSerializationStep1Builder serializingUseCaseResponseBackOntoTheBusByDefaultUsing(Mapifier<Object> mapper)
Configures the defaultMapifierthat will be used to serialize a use case return value onto theMessageBusif noMapifierconfigured matches the use case return value.- Parameters:
mapper- aMapifier- Returns:
- the next step in the fluent builder
-
-