Example usage for org.springframework.kafka.config MethodKafkaListenerEndpoint MethodKafkaListenerEndpoint

List of usage examples for org.springframework.kafka.config MethodKafkaListenerEndpoint MethodKafkaListenerEndpoint

Introduction

In this page you can find the example usage for org.springframework.kafka.config MethodKafkaListenerEndpoint MethodKafkaListenerEndpoint.

Prototype

MethodKafkaListenerEndpoint

Source Link

Usage

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);/*from ww w .j  a  va  2 s . c  om*/
    endpoint.setBeanFactory(this.beanFactory);
    processListener(endpoint, kafkaListener, bean, methodToUse, beanName);
}