org.springframework.integration.handler.AbstractReplyProducingMessageHandler Java Examples
The following examples show how to use
org.springframework.integration.handler.AbstractReplyProducingMessageHandler.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BindingServiceConfiguration.java From spring-cloud-stream with Apache License 2.0 | 6 votes |
@Bean public ApplicationListener<ContextRefreshedEvent> appListener( SpringIntegrationProperties springIntegrationProperties) { return new ApplicationListener<ContextRefreshedEvent>() { @Override public void onApplicationEvent(ContextRefreshedEvent event) { event.getApplicationContext() .getBeansOfType(AbstractReplyProducingMessageHandler.class) .values() .forEach(mh -> mh .addNotPropagatedHeaders(springIntegrationProperties .getMessageHandlerNotPropagatedHeaders())); } }; }
Example #2
Source File: BindingServiceConfigurationTests.java From spring-cloud-stream with Apache License 2.0 | 5 votes |
@Test public void valdateImportedConfiguartionHandlerPostProcessing() { ApplicationContext context = new SpringApplicationBuilder( TestChannelBinderConfiguration .getCompleteConfiguration(RootConfiguration.class)) .web(WebApplicationType.NONE).run(); Map<String, AbstractReplyProducingMessageHandler> beansOfType = context .getBeansOfType(AbstractReplyProducingMessageHandler.class); for (AbstractReplyProducingMessageHandler handler : beansOfType.values()) { assertThat(handler.getNotPropagatedHeaders().contains("contentType")) .isTrue(); } }