ognl
Interface ClassCacheInspector


public interface ClassCacheInspector

Optional interface that may be registered with OgnlRuntime.setClassCacheInspector(ClassCacheInspector) as a means to disallow caching of specific class types.


Method Summary
 boolean shouldCache(Class type)
          Invoked just before storing a class type within a cache instance.
 

Method Detail

shouldCache

boolean shouldCache(Class type)
Invoked just before storing a class type within a cache instance.

Parameters:
type - The class that is to be stored.
Returns:
True if the class can be cached, false otherwise.

OGNL Project Page