Package org.apache.commons.ognl
Interface ClassCacheInspector
-
public interface ClassCacheInspector
Optional interface that may be registered withOgnlRuntime.setClassCacheInspector(ClassCacheInspector)
as a means to disallow caching of specific class types.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.
-
-