Incorrect Spring Integration XML-based application context
Reports issues with the Spring Integration XML-based application context:
Unresolved bean references
Missing required tags or attributes
Incorrect property types
Inconsistent
enum
propertiesIncorrect types of referenced beans
Example:
<beans ... >
<int:channel id="channel"> <!-- 'dispatcher' and 'queue' can't be used together -->
<int:dispatcher failover="true"/>
<int:priority-queue capacity="4"/>
</int:channel>
<int:channel id="another" >
<int:queue <!--Exactly one of 'message-store' or 'ref' is required -->
capacity="4" message-store="myMessageStore" ref="myQueue"/>
</int:channel>
<int:gateway id="asyncGatewayError"
async-executor="dummyBean"/> <!--Bean must be of 'java.util.concurrent.Executor' type -->
<int:delayer default-delay="3"
message-store="myMessageStore"
scheduler="scheduler"
wait-for-tasks-to-complete-on-shutdown="false"/>
<!--Bean must be of 'java.util.concurrent.Executor' type -->
<int:delayer
default-delay="INVALID_VALUE" <!--Cannot convert string 'INVALID_VALUE' to target class 'java.lang.Integer' -->
message-store="dummyBean" <!-- Bean must be of 'org.springframework.integration.store.MessageStore' type-->
scheduler="dummyBean" <!-- Bean must be one of these types: java.util.concurrent.ScheduledExecutorService,org.springframework.scheduling.TaskScheduler-->
wait-for-tasks-to-complete-on-shutdown="INVALID_VALUE"/> <!-- Cannot resolve symbol 'INVALID_VALUE' -->
<bean id="dummyBean" class="java.lang.String"/>
<bean id="myMessageStore" class="org.springframework.integration.store.SimpleMessageStore"/>
<task:scheduler id="scheduler"/>
</beans>
Locating this inspection
- By ID
Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.
SpringIntegrationModel- Via Settings dialog
Path to the inspection settings via IntelliJ Platform IDE Settings dialog, when you need to adjust inspection settings directly from your IDE.
Inspection Details | |
---|---|
By default bundled with: | |
Can be installed with plugin: | Spring Integration Patterns, 242.22892 |
Last modified: 11 September 2024