org.apache.commons.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. |
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.
Copyright © 1997-2013 The Apache Software Foundation. All Rights Reserved.