ExampleSmartInitializingSingleton Class — spring-boot Architecture
Architecture documentation for the ExampleSmartInitializingSingleton class in LazyInitializationBeanFactoryPostProcessorTests.java from the spring-boot codebase.
Entity Profile
Source Code
core/spring-boot/src/test/java/org/springframework/boot/LazyInitializationBeanFactoryPostProcessorTests.java lines 84–97
static class ExampleSmartInitializingSingleton implements SmartInitializingSingleton {
private boolean callbackInvoked;
ExampleSmartInitializingSingleton(BeanState beanState) {
beanState.initializedBeans.add(getClass());
}
@Override
public void afterSingletonsInstantiated() {
this.callbackInvoked = true;
}
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free