Class Cache<C extends Cache<C>>

java.lang.Object
org.bgerp.cache.Cache<C>
Type Parameters:
C - tricky generic for being a factory
Direct Known Subclasses:
CallboardCache, CustomerGroupCache, ParameterCache, ProcessQueueCache, ProcessTypeCache, UserCache, UserGroupRoleCache, UserNewsCache

public abstract class Cache<C extends Cache<C>> extends Object
In-memory cache and factory of itself
  • Constructor Details

    • Cache

      protected Cache()
      Protected constructor, available only for children
  • Method Details

    • newInstance

      protected abstract C newInstance()
      Creates a new cache instance
      Returns:
      the instance
    • isValid

      public boolean isValid()
      Is the cache valid
      Returns:
      the validity state