Added name to MessageHandlerMethodFactory bean registration

This commit is contained in:
Oleg Zhurakousky
2019-03-05 09:35:19 +01:00
parent 717cf647f4
commit 854bc31264
2 changed files with 2 additions and 2 deletions

View File

@@ -113,7 +113,7 @@ public class BinderFactoryConfiguration {
return parsedBinderConfigurations;
}
@Bean
@Bean(IntegrationContextUtils.MESSAGE_HANDLER_FACTORY_BEAN_NAME)
public static MessageHandlerMethodFactory messageHandlerMethodFactory(
CompositeMessageConverterFactory compositeMessageConverterFactory,
@Qualifier(IntegrationContextUtils.ARGUMENT_RESOLVERS_BEAN_NAME) HandlerMethodArgumentResolversHolder ahmar,

View File

@@ -728,7 +728,7 @@ public class ContentTypeTckTests {
@Test
public void testWithTypelessMessageInputParameterAndServiceActivator() {
ApplicationContext context = new SpringApplicationBuilder(
TypelessPayloadConfigurationSA.class).web(WebApplicationType.NONE)
TypelessMessageConfigurationSA.class).web(WebApplicationType.NONE)
.run("--spring.jmx.enabled=false");
InputDestination source = context.getBean(InputDestination.class);
OutputDestination target = context.getBean(OutputDestination.class);