Class MethodLevelKafkaListenerScanner

java.lang.Object
io.github.stavshamir.springwolf.asyncapi.scanners.channels.annotation.AbstractMethodLevelListenerScanner<org.springframework.kafka.annotation.KafkaListener>
io.github.stavshamir.springwolf.asyncapi.scanners.channels.annotation.MethodLevelKafkaListenerScanner
All Implemented Interfaces:
io.github.stavshamir.springwolf.asyncapi.scanners.channels.ChannelsScanner, org.springframework.beans.factory.Aware, org.springframework.context.EmbeddedValueResolverAware

@Service @Order(3) @ConditionalOnProperty(name="springwolf.plugin.kafka.scanner.kafka-listener.enabled", matchIfMissing=true) public class MethodLevelKafkaListenerScanner extends io.github.stavshamir.springwolf.asyncapi.scanners.channels.annotation.AbstractMethodLevelListenerScanner<org.springframework.kafka.annotation.KafkaListener> implements io.github.stavshamir.springwolf.asyncapi.scanners.channels.ChannelsScanner, org.springframework.context.EmbeddedValueResolverAware
  • Constructor Details

    • MethodLevelKafkaListenerScanner

      public MethodLevelKafkaListenerScanner()
  • Method Details

    • setEmbeddedValueResolver

      public void setEmbeddedValueResolver(org.springframework.util.StringValueResolver resolver)
      Specified by:
      setEmbeddedValueResolver in interface org.springframework.context.EmbeddedValueResolverAware
    • getListenerAnnotationClass

      protected Class<org.springframework.kafka.annotation.KafkaListener> getListenerAnnotationClass()
      Specified by:
      getListenerAnnotationClass in class io.github.stavshamir.springwolf.asyncapi.scanners.channels.annotation.AbstractMethodLevelListenerScanner<org.springframework.kafka.annotation.KafkaListener>
    • getChannelName

      protected String getChannelName(org.springframework.kafka.annotation.KafkaListener annotation)
      Specified by:
      getChannelName in class io.github.stavshamir.springwolf.asyncapi.scanners.channels.annotation.AbstractMethodLevelListenerScanner<org.springframework.kafka.annotation.KafkaListener>
    • buildChannelBinding

      protected Map<String,? extends com.asyncapi.v2.binding.channel.ChannelBinding> buildChannelBinding(org.springframework.kafka.annotation.KafkaListener annotation)
      Specified by:
      buildChannelBinding in class io.github.stavshamir.springwolf.asyncapi.scanners.channels.annotation.AbstractMethodLevelListenerScanner<org.springframework.kafka.annotation.KafkaListener>
    • buildOperationBinding

      protected Map<String,? extends com.asyncapi.v2.binding.operation.OperationBinding> buildOperationBinding(org.springframework.kafka.annotation.KafkaListener annotation)
      Specified by:
      buildOperationBinding in class io.github.stavshamir.springwolf.asyncapi.scanners.channels.annotation.AbstractMethodLevelListenerScanner<org.springframework.kafka.annotation.KafkaListener>
    • buildMessageBinding

      protected Map<String,? extends com.asyncapi.v2.binding.message.MessageBinding> buildMessageBinding(org.springframework.kafka.annotation.KafkaListener annotation)
      Specified by:
      buildMessageBinding in class io.github.stavshamir.springwolf.asyncapi.scanners.channels.annotation.AbstractMethodLevelListenerScanner<org.springframework.kafka.annotation.KafkaListener>
    • getPayloadType

      protected Class<?> getPayloadType(Method method)
      Specified by:
      getPayloadType in class io.github.stavshamir.springwolf.asyncapi.scanners.channels.annotation.AbstractMethodLevelListenerScanner<org.springframework.kafka.annotation.KafkaListener>