Package 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

    Modifier and Type
    Method
    Description
    boolean
    Invoked just before storing a class type within a cache instance.
  • Method Details

    • 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.