Skip to content

Refactor to improve the logic in the GatewayProxyFactoryBean to mention a method name alongside with the bean name, so those start logs are going to more cleaner #3386

@cheungyatho

Description

@cheungyatho
@MessagingGateway(defaultRequestChannel = "four")
public interface Gate {

    void foo(String foo);

    void foo(Integer foo);

    void bar(String bar);

}

actual result:
2020-09-16 09:08:39,592 INFO [main] [org.springframework.integration.gateway.GatewayProxyFactoryBean$MethodInvocationGateway] - started bean 'integrationGraphServerTests$Gate'
2020-09-16 09:08:39,592 INFO [main] [org.springframework.integration.gateway.GatewayProxyFactoryBean$MethodInvocationGateway] - started bean 'integrationGraphServerTests$Gate'
2020-09-16 09:08:39,592 INFO [main] [org.springframework.integration.gateway.GatewayProxyFactoryBean$MethodInvocationGateway] - started bean 'integrationGraphServerTests$Gate'
2020-09-16 09:08:39,593 INFO [main] [org.springframework.integration.gateway.GatewayProxyFactoryBean] - started bean 'integrationGraphServerTests$Gate'

expected result :
2020-09-16 09:08:39,592 INFO [main] [org.springframework.integration.gateway.GatewayProxyFactoryBean$MethodInvocationGateway] - started bean 'integrationGraphServerTests$Gate.foo(String foo)'
2020-09-16 09:08:39,592 INFO [main] [org.springframework.integration.gateway.GatewayProxyFactoryBean$MethodInvocationGateway] - started bean 'integrationGraphServerTests$Gate.foo(Integer foo)'
2020-09-16 09:08:39,592 INFO [main] [org.springframework.integration.gateway.GatewayProxyFactoryBean$MethodInvocationGateway] - started bean 'integrationGraphServerTests$Gate.bar(String bar)'
2020-09-16 09:08:39,593 INFO [main] [org.springframework.integration.gateway.GatewayProxyFactoryBean] - started bean 'integrationGraphServerTests$Gate.class'

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions