Interface RequestSerializationStep1Builder
-
- All Known Implementing Classes:
UseCaseInvocationBuilder
public interface RequestSerializationStep1Builder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description RequestSerializationStep2Builder<Object>serializingUseCaseRequestOntoTheBusMatching(Predicate<Object> filter)Enters a fluent builder that configures aMapifierthat will be used to serialize a use case request onto theMessageBusif the type matches the providedfilter.default <T> RequestSerializationStep2Builder<Object>serializingUseCaseRequestOntoTheBusOfType(Class<T> type)Enters a fluent builder that configures aMapifierthat will be used to serialize a use case request to an object if the use case return value is of the specified type.default RequestSerializationStep2Builder<Object>serializingUseCaseRequestOntoTheBusOfTypeVoid()Enters a fluent builder that configures aMapifierthat will be used to serialize a use case request if the request isnull.RequestDeserializationStep1BuilderserializingUseCaseRequestsByDefaultUsing(Mapifier<Object> mapper)Configures the defaultMapifierthat will be used to serialize a use case request if no other serialization can be applied.default RequestDeserializationStep1BuilderthrowingAnExceptionByDefaultIfNoRequestSerializationCanBeApplied()Configured theUseCaseAdapterorUseCaseBusto throw an exception if no other serialization for use case requests can be applied.
-
-
-
Method Detail
-
serializingUseCaseRequestOntoTheBusOfType
default <T> RequestSerializationStep2Builder<Object> serializingUseCaseRequestOntoTheBusOfType(Class<T> type)
Enters a fluent builder that configures aMapifierthat will be used to serialize a use case request to an object if the use case return value is of the specified type.- Type Parameters:
T- the type of the use case request- Parameters:
type- the type of use case requests that will be serialized by theMapifier- Returns:
- the next step in the fluent builder
-
serializingUseCaseRequestOntoTheBusOfTypeVoid
default RequestSerializationStep2Builder<Object> serializingUseCaseRequestOntoTheBusOfTypeVoid()
Enters a fluent builder that configures aMapifierthat will be used to serialize a use case request if the request isnull.- Returns:
- the next step in the fluent builder
-
serializingUseCaseRequestOntoTheBusMatching
RequestSerializationStep2Builder<Object> serializingUseCaseRequestOntoTheBusMatching(Predicate<Object> filter)
Enters a fluent builder that configures aMapifierthat will be used to serialize a use case request onto theMessageBusif the type matches the providedfilter.
-
throwingAnExceptionByDefaultIfNoRequestSerializationCanBeApplied
default RequestDeserializationStep1Builder throwingAnExceptionByDefaultIfNoRequestSerializationCanBeApplied()
Configured theUseCaseAdapterorUseCaseBusto throw an exception if no other serialization for use case requests can be applied.- Returns:
- the next step in the fluent builder
-
serializingUseCaseRequestsByDefaultUsing
RequestDeserializationStep1Builder serializingUseCaseRequestsByDefaultUsing(Mapifier<Object> mapper)
Configures the defaultMapifierthat will be used to serialize a use case request if no other serialization can be applied.- Parameters:
mapper- aMapifier- Returns:
- the next step in the fluent builder
-
-