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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildChannelBinding(org.springframework.kafka.annotation.KafkaListener annotation) buildMessageBinding(org.springframework.kafka.annotation.KafkaListener annotation) buildOperationBinding(org.springframework.kafka.annotation.KafkaListener annotation) protected StringgetChannelName(org.springframework.kafka.annotation.KafkaListener annotation) protected Class<org.springframework.kafka.annotation.KafkaListener>protected Class<?>getPayloadType(Method method) voidsetEmbeddedValueResolver(org.springframework.util.StringValueResolver resolver) Methods inherited from class io.github.stavshamir.springwolf.asyncapi.scanners.channels.annotation.AbstractMethodLevelListenerScanner
scanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.stavshamir.springwolf.asyncapi.scanners.channels.ChannelsScanner
scan
-
Constructor Details
-
MethodLevelKafkaListenerScanner
public MethodLevelKafkaListenerScanner()
-
-
Method Details
-
setEmbeddedValueResolver
public void setEmbeddedValueResolver(org.springframework.util.StringValueResolver resolver) - Specified by:
setEmbeddedValueResolverin interfaceorg.springframework.context.EmbeddedValueResolverAware
-
getListenerAnnotationClass
- Specified by:
getListenerAnnotationClassin classio.github.stavshamir.springwolf.asyncapi.scanners.channels.annotation.AbstractMethodLevelListenerScanner<org.springframework.kafka.annotation.KafkaListener>
-
getChannelName
- Specified by:
getChannelNamein classio.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:
buildChannelBindingin classio.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:
buildOperationBindingin classio.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:
buildMessageBindingin classio.github.stavshamir.springwolf.asyncapi.scanners.channels.annotation.AbstractMethodLevelListenerScanner<org.springframework.kafka.annotation.KafkaListener>
-
getPayloadType
- Specified by:
getPayloadTypein classio.github.stavshamir.springwolf.asyncapi.scanners.channels.annotation.AbstractMethodLevelListenerScanner<org.springframework.kafka.annotation.KafkaListener>
-