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

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

Introduction

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

Prototype

@Override
    public void setBeanFactory(BeanFactory beanFactory) throws BeansException 

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);//from   w w w.ja va2s  . com
    endpoint.setBeanFactory(this.beanFactory);
    processListener(endpoint, rabbitListener, bean, methodToUse, beanName);
}