Example usage for org.springframework.util ReflectionUtils clearCache

List of usage examples for org.springframework.util ReflectionUtils clearCache

Introduction

In this page you can find the example usage for org.springframework.util ReflectionUtils clearCache.

Prototype

public static void clearCache() 

Source Link

Document

Clear the internal method/field cache.

Usage

From source file:org.springframework.context.support.AbstractApplicationContext.java

/**
 * Reset Spring's common core caches, in particular the {@link ReflectionUtils},
 * {@link ResolvableType} and {@link CachedIntrospectionResults} caches.
 * @since 4.2//from   ww w.j a  va2 s  .co m
 * @see ReflectionUtils#clearCache()
 * @see ResolvableType#clearCache()
 * @see CachedIntrospectionResults#clearClassLoader(ClassLoader)
 */
protected void resetCommonCaches() {
    ReflectionUtils.clearCache();
    ResolvableType.clearCache();
    CachedIntrospectionResults.clearClassLoader(getClassLoader());
}