org.apache.commons.ognl.internal
Class ReentrantReadWriteLockClassCache<T>

java.lang.Object
  extended by org.apache.commons.ognl.internal.HashMapCache<Class<?>,T>
      extended by org.apache.commons.ognl.internal.ReentrantReadWriteLockClassCache<T>
All Implemented Interfaces:
Cache<Class<?>,T>, ClassCache<T>

public class ReentrantReadWriteLockClassCache<T>
extends HashMapCache<Class<?>,T>
implements ClassCache<T>


Constructor Summary
ReentrantReadWriteLockClassCache(CacheEntryFactory<Class<?>,T> entryFactory)
           
 
Method Summary
 T put(Class<?> key, T value)
           
 void setClassInspector(ClassCacheInspector inspector)
           
 
Methods inherited from class org.apache.commons.ognl.internal.HashMapCache
clear, contains, get, getSize, shouldCreate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.commons.ognl.internal.Cache
clear, get, getSize
 

Constructor Detail

ReentrantReadWriteLockClassCache

public ReentrantReadWriteLockClassCache(CacheEntryFactory<Class<?>,T> entryFactory)
Method Detail

setClassInspector

public void setClassInspector(ClassCacheInspector inspector)
Specified by:
setClassInspector in interface ClassCache<T>

put

public T put(Class<?> key,
             T value)
Specified by:
put in interface Cache<Class<?>,T>
Overrides:
put in class HashMapCache<Class<?>,T>


Copyright © 1997-2013 The Apache Software Foundation. All Rights Reserved.