AbstractApplicationContext resets common introspection caches after refresh

Issue: SPR-13093
This commit is contained in:
Juergen Hoeller
2015-06-15 20:34:46 +02:00
parent f1d0368dd2
commit 06a5ed9cae
2 changed files with 29 additions and 2 deletions

View File

@@ -1307,11 +1307,19 @@ public class ResolvableType implements Serializable {
return resolvableType;
}
/**
* Clear the internal {@code ResolvableType} cache.
* @since 4.2
*/
public static void clearCache() {
cache.clear();
}
/**
* Strategy interface used to resolve {@link TypeVariable}s.
*/
static interface VariableResolver extends Serializable {
interface VariableResolver extends Serializable {
/**
* Return the source of the resolver (used for hashCode and equals).
@@ -1481,7 +1489,7 @@ public class ResolvableType implements Serializable {
/**
* The various kinds of bounds.
*/
static enum Kind {UPPER, LOWER}
enum Kind {UPPER, LOWER}
}
}