Package de.xima.fc.api.cache
Class XFormCache
- java.lang.Object
-
- de.xima.fc.api.cache.XFormCache
-
public class XFormCache extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
CACHE_NAME
-
Constructor Summary
Constructors Constructor Description XFormCache()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IXForm
cacheForm(UserContext uc, FormVersion entity)
static IXForm
getCachedForm(UserContext uc, FormVersion entity)
static String
getEntryKey(FormVersion entity)
static org.ehcache.Cache<String,XformCacheModel>
getInstance()
static IXForm
getUncachedForm(UserContext uc, FormVersion entity)
static void
init()
static XformCacheModel
readCachedForm(UserContext uc, FormVersion entity)
static void
reinit()
Reinitialize cache after configuration changestatic void
shutdown()
-
-
-
Field Detail
-
CACHE_NAME
public static final String CACHE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getCachedForm
public static IXForm getCachedForm(UserContext uc, FormVersion entity) throws com.alibaba.fastjson.JSONException, IOException
- Throws:
com.alibaba.fastjson.JSONException
IOException
-
getUncachedForm
public static IXForm getUncachedForm(UserContext uc, FormVersion entity) throws com.alibaba.fastjson.JSONException, IOException
- Throws:
com.alibaba.fastjson.JSONException
IOException
-
readCachedForm
public static XformCacheModel readCachedForm(UserContext uc, FormVersion entity)
-
cacheForm
public static IXForm cacheForm(UserContext uc, FormVersion entity) throws com.alibaba.fastjson.JSONException, IOException
- Throws:
com.alibaba.fastjson.JSONException
IOException
-
getEntryKey
public static String getEntryKey(FormVersion entity)
-
getInstance
public static org.ehcache.Cache<String,XformCacheModel> getInstance()
-
shutdown
public static void shutdown()
-
init
public static void init()
-
reinit
public static void reinit()
Reinitialize cache after configuration change
-
-