org.apache.commons.ognl.internal
Class ClassCacheImpl<V>

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

public class ClassCacheImpl<V>
extends Object
implements ClassCache<V>

Implementation of ClassCache.


Constructor Summary
ClassCacheImpl()
           
 
Method Summary
 void clear()
          
 V get(Class<?> key)
          
 int getSize()
          
 V put(Class<?> key, V value)
          
 void setClassInspector(ClassCacheInspector inspector)
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClassCacheImpl

public ClassCacheImpl()
Method Detail

setClassInspector

public void setClassInspector(ClassCacheInspector inspector)

Specified by:
setClassInspector in interface ClassCache<V>

clear

public void clear()

Specified by:
clear in interface Cache<Class<?>,V>

getSize

public int getSize()

Specified by:
getSize in interface Cache<Class<?>,V>

get

public final V get(Class<?> key)
            throws CacheException

Specified by:
get in interface Cache<Class<?>,V>
Throws:
CacheException

put

public final V put(Class<?> key,
                   V value)

Specified by:
put in interface Cache<Class<?>,V>

toString

public String toString()

Overrides:
toString in class Object


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