File tree Expand file tree Collapse file tree 3 files changed +15
-40
lines changed
java/org/springframework/scheduling/annotation
resources/META-INF/spring Expand file tree Collapse file tree 3 files changed +15
-40
lines changed Original file line number Diff line number Diff line change 25
25
26
26
import org .springframework .aop .framework .autoproxy .AbstractBeanFactoryAwareAdvisingPostProcessor ;
27
27
import org .springframework .aop .interceptor .AsyncUncaughtExceptionHandler ;
28
+ import org .springframework .aot .hint .RuntimeHints ;
29
+ import org .springframework .aot .hint .RuntimeHintsRegistrar ;
30
+ import org .springframework .aot .hint .support .RuntimeHintsUtils ;
28
31
import org .springframework .beans .factory .BeanFactory ;
32
+ import org .springframework .context .annotation .ImportRuntimeHints ;
29
33
import org .springframework .core .task .TaskExecutor ;
30
34
import org .springframework .lang .Nullable ;
35
+ import org .springframework .scheduling .annotation .AsyncAnnotationBeanPostProcessor .AsyncAnnotationRuntimeHints ;
31
36
import org .springframework .util .Assert ;
32
37
import org .springframework .util .function .SingletonSupplier ;
33
38
62
67
* @see ScheduledAnnotationBeanPostProcessor
63
68
*/
64
69
@ SuppressWarnings ("serial" )
70
+ @ ImportRuntimeHints (AsyncAnnotationRuntimeHints .class )
65
71
public class AsyncAnnotationBeanPostProcessor extends AbstractBeanFactoryAwareAdvisingPostProcessor {
66
72
67
73
/**
@@ -154,4 +160,13 @@ public void setBeanFactory(BeanFactory beanFactory) {
154
160
this .advisor = advisor ;
155
161
}
156
162
163
+ static class AsyncAnnotationRuntimeHints implements RuntimeHintsRegistrar {
164
+
165
+ @ Override
166
+ public void registerHints (RuntimeHints hints , ClassLoader classLoader ) {
167
+ RuntimeHintsUtils .registerAnnotation (hints , Async .class );
168
+ }
169
+
170
+ }
171
+
157
172
}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- org.springframework.aot.hint.RuntimeHintsRegistrar= \
2
- org.springframework.scheduling.annotation.SchedulingRuntimeHints
3
-
4
1
org.springframework.beans.factory.aot.BeanRegistrationAotProcessor= \
5
2
org.springframework.context.aot.ReflectiveProcessorBeanRegistrationAotProcessor
You can’t perform that action at this time.
0 commit comments