Class DefaultMethodPayloadTypeInferrer

java.lang.Object
io.awspring.cloud.sqs.config.DefaultMethodPayloadTypeInferrer
All Implemented Interfaces:
MethodPayloadTypeInferrer

public class DefaultMethodPayloadTypeInferrer extends Object implements MethodPayloadTypeInferrer
Default implementation of MethodPayloadTypeInferrer that infers the payload type by analyzing method parameters and their associated argument resolvers.

The inference strategy:

  1. If a parameter is explicitly annotated with Payload, it is considered the payload
  2. Otherwise, the first parameter that is not supported by any non-payload resolver is considered the payload

Non-payload resolvers are those that handle framework-specific types like acknowledgements, headers, visibility, or user-provided resolvers for custom types. Payload resolvers handle the actual message payload.

Since:
3.4.3
Author:
Tomaz Fernandes
  • Constructor Details

    • DefaultMethodPayloadTypeInferrer

      public DefaultMethodPayloadTypeInferrer()
  • Method Details