Package org.bgerp.cache
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
In-memory cache and factory of itself
-
Constructor Details
-
Cache
protected Cache()Protected constructor, available only for children
-
-
Method Details
-
newInstance
Creates a new cache instance- Returns:
- the instance
-
isValid
public boolean isValid()Is the cache valid- Returns:
- the validity state
-