SpyApplicationContext Class — spring-boot Architecture
Architecture documentation for the SpyApplicationContext class in SpringApplicationTests.java from the spring-boot codebase.
Entity Profile
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/SpringApplicationTests.java lines 1581–1600
static class SpyApplicationContext extends AnnotationConfigApplicationContext {
ConfigurableApplicationContext applicationContext = spy(new AnnotationConfigApplicationContext());
@Override
public void registerShutdownHook() {
this.applicationContext.registerShutdownHook();
}
ConfigurableApplicationContext getApplicationContext() {
return this.applicationContext;
}
@Override
public void close() {
this.applicationContext.close();
super.close();
}
}
Domain
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free