Interface RequestSerializationStep1Builder

    • Method Detail

      • serializingUseCaseRequestOntoTheBusOfType

        default <T> RequestSerializationStep2Builder<Object> serializingUseCaseRequestOntoTheBusOfType​(Class<T> type)
        Enters a fluent builder that configures a Mapifier that 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 the Mapifier
        Returns:
        the next step in the fluent builder
      • serializingUseCaseRequestOntoTheBusOfTypeVoid

        default RequestSerializationStep2Builder<Object> serializingUseCaseRequestOntoTheBusOfTypeVoid()
        Enters a fluent builder that configures a Mapifier that will be used to serialize a use case request if the request is null.
        Returns:
        the next step in the fluent builder
      • serializingUseCaseRequestOntoTheBusMatching

        RequestSerializationStep2Builder<Object> serializingUseCaseRequestOntoTheBusMatching​(Predicate<Object> filter)
        Enters a fluent builder that configures a Mapifier that will be used to serialize a use case request onto the MessageBus if the type matches the provided filter.
        Parameters:
        filter - a Predicate that returns true if the Mapifier should be used on the respective use case request
        Returns:
        the next step in the fluent builder
      • throwingAnExceptionByDefaultIfNoRequestSerializationCanBeApplied

        default RequestDeserializationStep1Builder throwingAnExceptionByDefaultIfNoRequestSerializationCanBeApplied()
        Configured the UseCaseAdapter or UseCaseBus to 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 default Mapifier that will be used to serialize a use case request if no other serialization can be applied.
        Parameters:
        mapper - a Mapifier
        Returns:
        the next step in the fluent builder