File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
main/resources/META-INF/spring
test/java/org/springframework/aop/scope Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 1
- org.springframework.beans.factory.aot.registration. BeanRegistrationAotProcessor=\
1
+ org.springframework.beans.factory.aot.BeanRegistrationAotProcessor=\
2
2
org.springframework.aop.scope.ScopedProxyBeanRegistrationAotProcessor
Original file line number Diff line number Diff line change 34
34
import org .springframework .aot .test .generator .compile .Compiled ;
35
35
import org .springframework .aot .test .generator .compile .TestCompiler ;
36
36
import org .springframework .beans .factory .BeanCreationException ;
37
+ import org .springframework .beans .factory .aot .AotFactoriesLoader ;
37
38
import org .springframework .beans .factory .aot .BeanFactoryInitializationAotContribution ;
38
39
import org .springframework .beans .factory .aot .BeanFactoryInitializationCode ;
40
+ import org .springframework .beans .factory .aot .BeanRegistrationAotProcessor ;
39
41
import org .springframework .beans .factory .aot .TestBeanRegistrationsAotProcessor ;
40
42
import org .springframework .beans .factory .config .BeanDefinition ;
41
43
import org .springframework .beans .factory .config .PropertiesFactoryBean ;
@@ -77,6 +79,12 @@ void setup() {
77
79
this .beanFactoryInitializationCode = new MockBeanFactoryInitializationCode ();
78
80
}
79
81
82
+ @ Test
83
+ void scopedProxyBeanRegistrationAotProcessorIsRegistered () {
84
+ assertThat (new AotFactoriesLoader (this .beanFactory ).load (BeanRegistrationAotProcessor .class ))
85
+ .anyMatch (ScopedProxyBeanRegistrationAotProcessor .class ::isInstance );
86
+ }
87
+
80
88
@ Test
81
89
void getBeanRegistrationCodeGeneratorWhenNotScopedProxy () {
82
90
BeanDefinition beanDefinition = BeanDefinitionBuilder
You can’t perform that action at this time.
0 commit comments