Class CompositeMessageConverterFactory

java.lang.Object
org.springframework.cloud.stream.converter.CompositeMessageConverterFactory

public class CompositeMessageConverterFactory extends Object
A factory for creating an instance of CompositeMessageConverter for a given target MIME type.
Author:
David Turanski, Ilayaperumal Gopinathan, Marius Bogoevici, Vinicius Carvalho, Oleg Zhurakousky
  • Constructor Details

    • CompositeMessageConverterFactory

      public CompositeMessageConverterFactory()
    • CompositeMessageConverterFactory

      public CompositeMessageConverterFactory(List<? extends org.springframework.messaging.converter.MessageConverter> customConverters, com.fasterxml.jackson.databind.ObjectMapper objectMapper, org.springframework.cloud.function.json.JsonMapper jsonMapper)
      Parameters:
      customConverters - a list of AbstractMessageConverter
      objectMapper - object mapper for for serialization / deserialization
  • Method Details

    • getMessageConverterForType

      public org.springframework.messaging.converter.MessageConverter getMessageConverterForType(org.springframework.util.MimeType mimeType)
      Creation method.
      Parameters:
      mimeType - the target MIME type
      Returns:
      a converter for the target MIME type
    • getMessageConverterForAllRegistered

      public org.springframework.messaging.converter.CompositeMessageConverter getMessageConverterForAllRegistered()