Example usage for org.springframework.amqp.rabbit.listener MethodRabbitListenerEndpoint setMethod

List of usage examples for org.springframework.amqp.rabbit.listener MethodRabbitListenerEndpoint setMethod

Introduction

In this page you can find the example usage for org.springframework.amqp.rabbit.listener MethodRabbitListenerEndpoint setMethod.

Prototype

public void setMethod(Method method) 

Source Link

Document

Set the method to invoke to process a message managed by this endpoint.

Usage

From source file:org.springframework.amqp.rabbit.annotation.RabbitListenerAnnotationBeanPostProcessor.java

protected void processAmqpListener(RabbitListener rabbitListener, Method method, Object bean, String beanName) {
    Method methodToUse = checkProxy(method, bean);
    MethodRabbitListenerEndpoint endpoint = new MethodRabbitListenerEndpoint();
    endpoint.setMethod(methodToUse);
    endpoint.setBeanFactory(this.beanFactory);
    processListener(endpoint, rabbitListener, bean, methodToUse, beanName);
}