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

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

Introduction

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

Prototype

MethodRabbitListenerEndpoint

Source Link

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);/*w w w  .  j a v  a 2 s.  com*/
    endpoint.setBeanFactory(this.beanFactory);
    processListener(endpoint, rabbitListener, bean, methodToUse, beanName);
}