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 StringCACHE_NAME
-
Constructor Summary
Constructors Constructor Description XFormCache()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IXFormcacheForm(UserContext uc, FormVersion entity)static IXFormgetCachedForm(UserContext uc, FormVersion entity)static StringgetEntryKey(FormVersion entity)static org.ehcache.Cache<String,XformCacheModel>getInstance()static IXFormgetUncachedForm(UserContext uc, FormVersion entity)static voidinit()static XformCacheModelreadCachedForm(UserContext uc, FormVersion entity)static voidreinit()Reinitialize cache after configuration changestatic voidshutdown()
-
-
-
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.JSONExceptionIOException
-
getUncachedForm
public static IXForm getUncachedForm(UserContext uc, FormVersion entity) throws com.alibaba.fastjson.JSONException, IOException
- Throws:
com.alibaba.fastjson.JSONExceptionIOException
-
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.JSONExceptionIOException
-
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
-
-