Several enhancements with respect to CachingMetadataReaderFactory handling.
Added "clearCache()" method to CachingMetadataReaderFactory, for clearing the metadata cache once not needed anymore - in particular when the MetadataReaderFactory instance is long-lived. Also added "setMetadataReaderFactory" method to ClassPathScanningCandidateComponentProvider, analogous to ConfigurationClassPostProcessor.
@ -153,4 +153,10 @@ public class AnnotationConfigApplicationContext extends GenericApplicationContex
@@ -153,4 +153,10 @@ public class AnnotationConfigApplicationContext extends GenericApplicationContex
@ -78,7 +79,8 @@ public class ClassPathScanningCandidateComponentProvider implements EnvironmentC
@@ -78,7 +79,8 @@ public class ClassPathScanningCandidateComponentProvider implements EnvironmentC
@ -120,6 +122,31 @@ public class ClassPathScanningCandidateComponentProvider implements EnvironmentC
@@ -120,6 +122,31 @@ public class ClassPathScanningCandidateComponentProvider implements EnvironmentC
@ -130,17 +157,10 @@ public class ClassPathScanningCandidateComponentProvider implements EnvironmentC
@@ -130,17 +157,10 @@ public class ClassPathScanningCandidateComponentProvider implements EnvironmentC
@ -324,4 +344,14 @@ public class ClassPathScanningCandidateComponentProvider implements EnvironmentC
@@ -324,4 +344,14 @@ public class ClassPathScanningCandidateComponentProvider implements EnvironmentC
@ -320,6 +320,10 @@ public class ConfigurationClassPostProcessor implements BeanDefinitionRegistryPo
@@ -320,6 +320,10 @@ public class ConfigurationClassPostProcessor implements BeanDefinitionRegistryPo
@ -40,7 +40,7 @@ public class CachingMetadataReaderFactory extends SimpleMetadataReaderFactory {
@@ -40,7 +40,7 @@ public class CachingMetadataReaderFactory extends SimpleMetadataReaderFactory {
@ -95,14 +95,23 @@ public class CachingMetadataReaderFactory extends SimpleMetadataReaderFactory {
@@ -95,14 +95,23 @@ public class CachingMetadataReaderFactory extends SimpleMetadataReaderFactory {