Inspectopedia Help

Incorrect 'channel' attribute in an endpoint method annotation

Reports incorrect channel attributes in endpoint method annotations: @Gateway, @ServiceActivator, @Filter, and so on.

Example:

@Component public class MyComponent {} @Gateway(requestChannel = "requestChannel", replyChannel = "replyChannel") public void gateway() {...} @Gateway( requestChannel ="simpleBean", // Bean must be one of these types: org.springframework.integration.MessageChannel,org.springframework.messaging.MessageChannel replyChannel = "unknownChannel") // Cannot find channel public void errors() {...} @Bean public MyBean simpleBean() {...} }

Inspection Details

By default bundled with:

IntelliJ IDEA 2024.1, Qodana for JVM 2024.1,

Can be installed with plugin:

Spring Integration Patterns, 241.16690

Last modified: 29 April 2024