Class ClassMetaCache<T>
- java.lang.Object
-
- org.apache.wicket.util.collections.ClassMetaCache<T>
-
- Type Parameters:
T
- type of objects stored in cache
public class ClassMetaCache<T> extends Object
This class wraps a WeakHashMap that holds one ConcurrentHashMap per ClassLoader. In the rare event of a previously unmapped ClassLoader, the WeakHashMap is replaced by a new one. This avoids any synchronization overhead, much like aCopyOnWriteArrayList
-
-
Constructor Summary
Constructors Constructor Description ClassMetaCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
get(Class<?> key)
Gets value from cache or returnsnull
if not in cacheT
put(Class<?> key, T value)
Puts value into cache
-
-
-
Constructor Detail
-
ClassMetaCache
public ClassMetaCache()
-
-