Class IntrospectorCacheImpl
java.lang.Object
org.apache.velocity.util.introspection.IntrospectorCacheImpl
- All Implemented Interfaces:
IntrospectorCache
This is the internal introspector cache implementation.
- Since:
- 1.5
- Version:
- $Id: IntrospectorCacheImpl.java 898032 2010-01-11 19:51:03Z nbubna $
- Author:
- Henning P. Schmiedehausen
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
define a public string so that it can be looked for if interested -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
CACHEDUMP_MSG
define a public string so that it can be looked for if interested- See Also:
-
-
Constructor Details
-
IntrospectorCacheImpl
C'tor
-
-
Method Details
-
clear
public void clear()Clears the internal cache.- Specified by:
clear
in interfaceIntrospectorCache
-
get
Lookup a given Class object in the cache. If it does not exist, check whether this is due to a class change and purge the caches eventually.- Specified by:
get
in interfaceIntrospectorCache
- Parameters:
c
- The class to look up.- Returns:
- A ClassMap object or null if it does not exist in the cache.
-
put
Creates a class map for specific class and registers it in the cache. Also adds the qualified name to the name->class map for later Classloader change detection.- Specified by:
put
in interfaceIntrospectorCache
- Parameters:
c
- The class for which the class map gets generated.- Returns:
- A ClassMap object.
-