List of usage examples for org.springframework.kafka.config MethodKafkaListenerEndpoint setMethod
public void setMethod(Method method)
From source file:org.springframework.kafka.annotation.KafkaListenerAnnotationBeanPostProcessor.java
protected void processKafkaListener(KafkaListener kafkaListener, Method method, Object bean, String beanName) { Method methodToUse = checkProxy(method, bean); MethodKafkaListenerEndpoint<K, V> endpoint = new MethodKafkaListenerEndpoint<K, V>(); endpoint.setMethod(methodToUse); endpoint.setBeanFactory(this.beanFactory); processListener(endpoint, kafkaListener, bean, methodToUse, beanName); }