Related polishing

Issue: SPR-11386
This commit is contained in:
Juergen Hoeller
2014-02-04 16:45:14 +01:00
parent 60c1905cdd
commit 6634c19e6a
2 changed files with 5 additions and 14 deletions

View File

@@ -94,14 +94,15 @@ public class CachedIntrospectionResults {
public static final String IGNORE_BEANINFO_PROPERTY_NAME = "spring.beaninfo.ignore";
private static final Log logger = LogFactory.getLog(CachedIntrospectionResults.class);
private static final boolean shouldIntrospectorIgnoreBeaninfoClasses;
private static final boolean shouldIntrospectorIgnoreBeaninfoClasses =
SpringProperties.getFlag(IGNORE_BEANINFO_PROPERTY_NAME);
/** Stores the BeanInfoFactory instances */
private static List<BeanInfoFactory> beanInfoFactories = SpringFactoriesLoader.loadFactories(
BeanInfoFactory.class, CachedIntrospectionResults.class.getClassLoader());
private static final Log logger = LogFactory.getLog(CachedIntrospectionResults.class);
/**
* Set of ClassLoaders that this CachedIntrospectionResults class will always
* accept classes from, even if the classes do not qualify as cache-safe.
@@ -116,11 +117,6 @@ public class CachedIntrospectionResults {
static final Map<Class<?>, Object> classCache = new WeakHashMap<Class<?>, Object>();
static {
shouldIntrospectorIgnoreBeaninfoClasses = SpringProperties.getFlag(IGNORE_BEANINFO_PROPERTY_NAME);
}
/**
* Accept the given ClassLoader as cache-safe, even if its classes would
* not qualify as cache-safe in this CachedIntrospectionResults class.