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

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

Introduction

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

Prototype

public MultiMethodKafkaListenerEndpoint(List<Method> methods, Object bean) 

Source Link

Document

Construct an instance for the provided methods and bean with no default method.

Usage

From source file:org.springframework.kafka.annotation.KafkaListenerAnnotationBeanPostProcessor.java

private void processMultiMethodListeners(Collection<KafkaListener> classLevelListeners,
        List<Method> multiMethods, Object bean, String beanName) {
    List<Method> checkedMethods = new ArrayList<Method>();
    for (Method method : multiMethods) {
        checkedMethods.add(checkProxy(method, bean));
    }/*from w ww  . jav a  2s.c om*/
    for (KafkaListener classLevelListener : classLevelListeners) {
        MultiMethodKafkaListenerEndpoint<K, V> endpoint = new MultiMethodKafkaListenerEndpoint<K, V>(
                checkedMethods, bean);
        endpoint.setBeanFactory(this.beanFactory);
        processListener(endpoint, classLevelListener, bean, bean.getClass(), beanName);
    }
}