Class AbstractCache

java.lang.Object
org.apache.ofbiz.widget.cache.AbstractCache
Direct Known Subclasses:
ScreenCache

public abstract class AbstractCache extends Object
  • Constructor Details

    • AbstractCache

      protected AbstractCache(String id)
  • Method Details

    • remove

      public void remove(String widgetName)
      Remove.
      Parameters:
      widgetName - the widget name
    • clear

      public void clear()
      Clear.
    • getCacheNamePrefix

      public String getCacheNamePrefix()
      Gets cache name prefix.
      Returns:
      the cache name prefix
    • getCacheName

      public String getCacheName(String widgetName)
      Gets cache name.
      Parameters:
      widgetName - the widget name
      Returns:
      the cache name
    • getCache

      protected <K, V> UtilCache<K,V> getCache(String widgetName)
      Gets cache.
      Type Parameters:
      K - the type parameter
      V - the type parameter
      Parameters:
      widgetName - the widget name
      Returns:
      the cache
    • getOrCreateCache

      protected UtilCache<WidgetContextCacheKey,GenericWidgetOutput> getOrCreateCache(String widgetName)
      Gets or create cache.
      Parameters:
      widgetName - the widget name
      Returns:
      the or create cache