Examples of RabbitListenerEndpointRegistry


Examples of org.springframework.amqp.rabbit.listener.RabbitListenerEndpointRegistry

      return new RabbitListenerContainerTestFactory();
    }

    @Bean
    public RabbitListenerEndpointRegistry customRegistry() {
      return new RabbitListenerEndpointRegistry();
    }
View Full Code Here

Examples of org.springframework.amqp.rabbit.listener.RabbitListenerEndpointRegistry

    RabbitListenerEndpoint endpoint = defaultFactory.getListenerContainers().get(0).getEndpoint();
    assertEquals("Wrong endpoint type", SimpleRabbitListenerEndpoint.class, endpoint.getClass());
    assertEquals("Wrong listener set in custom endpoint", context.getBean("simpleMessageListener"),
        ((SimpleRabbitListenerEndpoint) endpoint).getMessageListener());

    RabbitListenerEndpointRegistry customRegistry =
        context.getBean("customRegistry", RabbitListenerEndpointRegistry.class);
    assertEquals("Wrong number of containers in the registry", 2,
        customRegistry.getListenerContainers().size());
    assertNotNull("Container with custom id on the annotation should be found",
        customRegistry.getListenerContainer("listenerId"));
    assertNotNull("Container created with custom id should be found",
        customRegistry.getListenerContainer("myCustomEndpointId"));
  }
View Full Code Here

Examples of org.springframework.amqp.rabbit.listener.RabbitListenerEndpointRegistry

      return postProcessor;
    }

    @Bean
    public RabbitListenerEndpointRegistry rabbitListenerEndpointRegistry() {
      return new RabbitListenerEndpointRegistry();
    }
View Full Code Here

Examples of org.springframework.amqp.rabbit.listener.RabbitListenerEndpointRegistry

    return new RabbitListenerAnnotationBeanPostProcessor();
  }

  @Bean(name = RabbitListenerConfigUtils.RABBIT_LISTENER_ENDPOINT_REGISTRY_BEAN_NAME)
  public RabbitListenerEndpointRegistry defaultRabbitListenerEndpointRegistry() {
    return new RabbitListenerEndpointRegistry();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.