2626import java .util .function .Supplier ;
2727import java .util .stream .Stream ;
2828
29- import org .springframework .aop .SpringProxy ;
30- import org .springframework .aop .framework .Advised ;
29+ import org .springframework .aop .framework .AopProxyUtils ;
3130import org .springframework .aot .hint .MemberCategory ;
3231import org .springframework .aot .hint .ProxyHints ;
3332import org .springframework .aot .hint .ReflectionHints ;
3736import org .springframework .aot .hint .TypeReference ;
3837import org .springframework .beans .factory .config .BeanExpressionContext ;
3938import org .springframework .context .SmartLifecycle ;
40- import org .springframework .core .DecoratingProxy ;
4139import org .springframework .integration .aggregator .MessageGroupProcessor ;
4240import org .springframework .integration .context .IntegrationContextUtils ;
41+ import org .springframework .integration .context .IntegrationProperties ;
4342import org .springframework .integration .core .GenericSelector ;
4443import org .springframework .integration .core .MessageSource ;
4544import org .springframework .integration .dsl .IntegrationFlow ;
@@ -84,12 +83,11 @@ public void registerHints(RuntimeHints hints, ClassLoader classLoader) {
8483 Supplier .class ,
8584 BeanExpressionContext .class ,
8685 IntegrationContextUtils .class ,
86+ IntegrationProperties .class ,
8787 MethodArgsHolder .class ,
8888 AbstractReplyProducingMessageHandler .RequestHandler .class ,
8989 ExpressionEvaluatingRoutingSlipRouteStrategy .RequestAndReply .class )
90- .forEach (type ->
91- reflectionHints .registerType (type ,
92- builder -> builder .withMembers (MemberCategory .INVOKE_PUBLIC_METHODS )));
90+ .forEach (type -> reflectionHints .registerType (type , MemberCategory .INVOKE_PUBLIC_METHODS ));
9391
9492 reflectionHints .registerType (JsonPathUtils .class ,
9593 builder ->
@@ -98,15 +96,14 @@ public void registerHints(RuntimeHints hints, ClassLoader classLoader) {
9896
9997 // For #xpath() SpEL function
10098 reflectionHints .registerTypeIfPresent (classLoader , "org.springframework.integration.xml.xpath.XPathUtils" ,
101- builder -> builder . withMembers ( MemberCategory .INVOKE_PUBLIC_METHODS ) );
99+ MemberCategory .INVOKE_PUBLIC_METHODS );
102100
103101 Stream .of (
104102 "kotlin.jvm.functions.Function0" ,
105103 "kotlin.jvm.functions.Function1" ,
106104 "kotlin.Unit" )
107105 .forEach (type ->
108- reflectionHints .registerTypeIfPresent (classLoader , type ,
109- builder -> builder .withMembers (MemberCategory .INVOKE_PUBLIC_METHODS )));
106+ reflectionHints .registerTypeIfPresent (classLoader , type , MemberCategory .INVOKE_PUBLIC_METHODS ));
110107
111108 hints .resources ().registerPattern ("META-INF/spring.integration.properties" );
112109
@@ -148,10 +145,7 @@ public void registerHints(RuntimeHints hints, ClassLoader classLoader) {
148145 }
149146
150147 private static void registerSpringJdkProxy (ProxyHints proxyHints , Class <?>... proxiedInterfaces ) {
151- proxyHints
152- .registerJdkProxy (builder ->
153- builder .proxiedInterfaces (proxiedInterfaces )
154- .proxiedInterfaces (SpringProxy .class , Advised .class , DecoratingProxy .class ));
148+ proxyHints .registerJdkProxy (AopProxyUtils .completeJdkProxyInterfaces (proxiedInterfaces ));
155149 }
156150
157151}
0 commit comments