SharedMetadataReaderFactoryBean Class — spring-boot Architecture
Architecture documentation for the SharedMetadataReaderFactoryBean class in SharedMetadataReaderFactoryContextInitializer.java from the spring-boot codebase.
Entity Profile
Source Code
core/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/SharedMetadataReaderFactoryContextInitializer.java lines 189–220
static class SharedMetadataReaderFactoryBean implements FactoryBean<CachingMetadataReaderFactory>,
ResourceLoaderAware, ApplicationListener<ContextRefreshedEvent> {
@SuppressWarnings("NullAway.Init")
private CachingMetadataReaderFactory metadataReaderFactory;
@Override
public void setResourceLoader(ResourceLoader resourceLoader) {
this.metadataReaderFactory = new CachingMetadataReaderFactory(resourceLoader);
}
@Override
public CachingMetadataReaderFactory getObject() throws Exception {
return this.metadataReaderFactory;
}
@Override
public Class<?> getObjectType() {
return CachingMetadataReaderFactory.class;
}
@Override
public boolean isSingleton() {
return true;
}
@Override
public void onApplicationEvent(ContextRefreshedEvent event) {
this.metadataReaderFactory.clearCache();
}
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free