Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.

Commit 13272e9

Browse files
artembilansdeleuze
authored andcommitted
Restore Spring Integration support
* Upgrade sample to the latest Spring Integration `5.5.7-SNAPSHOT` * Add more type hints into the `IntegrationHints` See gh-1134
1 parent 48e1fa6 commit 13272e9

File tree

2 files changed

+20
-5
lines changed

2 files changed

+20
-5
lines changed

samples/integration/pom.xml

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
<properties>
1919
<java.version>11</java.version>
20+
<spring-integration.version>5.5.7-SNAPSHOT</spring-integration.version>
2021
</properties>
2122

2223
<dependencies>

spring-native-configuration/src/main/java/org/springframework/integration/IntegrationHints.java

+19-5
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,28 @@
6666
}),
6767
@TypeHint(access = AccessBits.CLASS | AccessBits.PUBLIC_METHODS,
6868
types = {
69+
org.springframework.beans.factory.config.BeanExpressionContext.class,
70+
org.springframework.integration.config.ConsumerEndpointFactoryBean.class,
71+
org.springframework.integration.context.IntegrationContextUtils.class,
6972
org.springframework.integration.xml.xpath.XPathUtils.class,
7073
org.springframework.integration.json.JsonPathUtils.class,
7174
com.jayway.jsonpath.JsonPath.class,
7275
org.springframework.integration.gateway.MethodArgsHolder.class,
7376
org.springframework.integration.routingslip.ExpressionEvaluatingRoutingSlipRouteStrategy.RequestAndReply.class,
74-
org.springframework.integration.core.Pausable.class
77+
org.springframework.integration.core.Pausable.class,
78+
org.springframework.integration.annotation.ServiceActivator.class,
79+
org.springframework.integration.annotation.Splitter.class,
80+
org.springframework.integration.annotation.Transformer.class,
81+
org.springframework.integration.annotation.Router.class,
82+
org.springframework.integration.annotation.Filter.class,
83+
org.springframework.integration.annotation.BridgeFrom.class,
84+
org.springframework.integration.annotation.BridgeTo.class,
85+
org.springframework.integration.annotation.Aggregator.class,
86+
org.springframework.integration.annotation.Gateway.class,
87+
org.springframework.integration.annotation.GatewayHeader.class,
88+
org.springframework.integration.annotation.InboundChannelAdapter.class,
89+
org.springframework.integration.annotation.Poller.class,
90+
org.springframework.integration.annotation.Publisher.class
7591
})
7692
},
7793
serializables = {
@@ -127,7 +143,6 @@
127143
@TypeHint(
128144
types = {
129145
org.springframework.integration.core.GenericSelector.class,
130-
org.springframework.messaging.support.GenericMessage.class,
131146
org.springframework.integration.transformer.GenericTransformer.class,
132147
org.springframework.integration.handler.GenericHandler.class,
133148
java.util.function.Function.class,
@@ -187,8 +202,7 @@ public List<HintDeclaration> computeHints(TypeSystem typeSystem) {
187202
hints.addAll(computeMessagingGatewayHints(typeSystem));
188203
hints.addAll(computeAbstractEndpointHints(typeSystem));
189204
hints.addAll(computeIntegrationNodeHints(typeSystem));
190-
// TODO Fails with 'Unable to find class file for org/springframework/web/server/WebFilter' on 'spring-aot-maven-plugin:test-generate'
191-
// hints.addAll(computeMessageHints(typeSystem));
205+
hints.addAll(computeMessageHints(typeSystem));
192206
return hints;
193207
}
194208

@@ -244,7 +258,7 @@ private static List<HintDeclaration> computeMessageHints(TypeSystem typeSystem)
244258
.skipMethodInspection()
245259
.skipFieldInspection()
246260
.skipConstructorInspection()
247-
.filter(type -> type.implementsInterface(MESSAGE_TYPE))
261+
.filter(type -> type.implementsInterface(MESSAGE_TYPE, true))
248262
.onTypeDiscovered((type, context) ->
249263
context.addReflectiveAccess(type,
250264
new AccessDescriptor(AccessBits.CLASS | AccessBits.PUBLIC_METHODS)))

0 commit comments

Comments
 (0)