Interface ResponseDeserializationStep1Builder
-
- All Known Implementing Classes:
UseCaseInvocationBuilder
public interface ResponseDeserializationStep1Builder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description FinalStepBuilderdeserializeUseCaseResponsesPerDefault(Demapifier<Object> mapper)Configures the defaultDemapifierthat will be used to deserialize a use case response if noDemapifierconfigured matches the response.<T> ResponseDeserializationStep2Builder<T>deserializingUseCaseResponsesOfThat(BiPredicate<Class<?>,Object> filter)Enters a fluent builder that configures aDemapifierthat will be used to deserialize aMapfrom theMessageBusto the return value of the use case invocation, if the object matches the providedfilter.default <T> ResponseDeserializationStep2Builder<T>deserializingUseCaseResponsesOfType(Class<T> type)Enters a fluent builder that configures aDemapifierthat will be used to deserialize aMapfrom theMessageBusto the return value of the use case invocation.default <T> ResponseDeserializationStep2Builder<T>deserializingUseCaseResponsesThat(BiPredicate<Class<?>,Object> filter)Enters a fluent builder that configures aDemapifierthat will be used to deserialize aMapfrom the *MessageBusto the return value of the use case invocation.default FinalStepBuilderthrowAnExceptionByDefaultIfNoResponseDeserializationCanBeApplied()Configures to throw an exception if noDemapifierconfigured matches the response.
-
-
-
Method Detail
-
deserializingUseCaseResponsesOfType
default <T> ResponseDeserializationStep2Builder<T> deserializingUseCaseResponsesOfType(Class<T> type)
Enters a fluent builder that configures aDemapifierthat will be used to deserialize aMapfrom theMessageBusto the return value of the use case invocation.- Type Parameters:
T- the type of the use case parameter- Parameters:
type- the class of use case parameters that will be deserialized by theDemapifier- Returns:
- the next step in the fluent builder
-
deserializingUseCaseResponsesThat
default <T> ResponseDeserializationStep2Builder<T> deserializingUseCaseResponsesThat(BiPredicate<Class<?>,Object> filter)
Enters a fluent builder that configures aDemapifierthat will be used to deserialize aMapfrom the *MessageBusto the return value of the use case invocation.- Type Parameters:
T- the type of the use case response- Parameters:
filter- aBiPredicatethat returns true if theDemapifiershould be used- Returns:
- the next step in the fluent builder
-
deserializingUseCaseResponsesOfThat
<T> ResponseDeserializationStep2Builder<T> deserializingUseCaseResponsesOfThat(BiPredicate<Class<?>,Object> filter)
Enters a fluent builder that configures aDemapifierthat will be used to deserialize aMapfrom theMessageBusto the return value of the use case invocation, if the object matches the providedfilter.- Type Parameters:
T- the type of the use case response- Parameters:
filter- aBiPredicatethat returns true if theDemapifiershould be used- Returns:
- the next step in the fluent builder
-
throwAnExceptionByDefaultIfNoResponseDeserializationCanBeApplied
default FinalStepBuilder throwAnExceptionByDefaultIfNoResponseDeserializationCanBeApplied()
Configures to throw an exception if noDemapifierconfigured matches the response.- Returns:
- the next step in the fluent builder
-
deserializeUseCaseResponsesPerDefault
FinalStepBuilder deserializeUseCaseResponsesPerDefault(Demapifier<Object> mapper)
Configures the defaultDemapifierthat will be used to deserialize a use case response if noDemapifierconfigured matches the response.- Parameters:
mapper- aDemapifier- Returns:
- the next step in the fluent builder
-
-