File tree Expand file tree Collapse file tree 3 files changed +30
-0
lines changed
java/org/springframework/retry/aot
resources/META-INF/spring Expand file tree Collapse file tree 3 files changed +30
-0
lines changed Original file line number Diff line number Diff line change 162162
163163 <build >
164164 <resources >
165+ <resource >
166+ <directory >src/main/resources</directory >
167+ </resource >
165168 <resource >
166169 <directory >.</directory >
167170 <targetPath >META-INF</targetPath >
Original file line number Diff line number Diff line change 1+ package org .springframework .retry .aot ;
2+
3+ import org .springframework .aot .hint .MemberCategory ;
4+ import org .springframework .aot .hint .RuntimeHints ;
5+ import org .springframework .aot .hint .RuntimeHintsRegistrar ;
6+ import org .springframework .aot .hint .TypeReference ;
7+ import org .springframework .retry .support .RetryTemplate ;
8+
9+ /**
10+ * The retry runtime hints to be used for aot builds.
11+ *
12+ * @author Tobias Soloschenko
13+ */
14+ class RetryHints implements RuntimeHintsRegistrar {
15+
16+ @ Override
17+ public void registerHints (RuntimeHints hints , ClassLoader classLoader ) {
18+ hints .reflection ()
19+ .registerType (TypeReference .of (RetryTemplate .class ),
20+ hint -> hint .withMembers (MemberCategory .INTROSPECT_DECLARED_CONSTRUCTORS ,
21+ MemberCategory .INVOKE_DECLARED_CONSTRUCTORS , MemberCategory .INTROSPECT_DECLARED_METHODS ,
22+ MemberCategory .INVOKE_DECLARED_METHODS ));
23+ }
24+
25+ }
Original file line number Diff line number Diff line change 1+ org.springframework.aot.hint.RuntimeHintsRegistrar=\
2+ org.springframework.retry.aot.RetryHints
You can’t perform that action at this time.
0 commit comments