public class ResourceSyncContext
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static class |
ResourceSyncContext.Status
初始化状态
|
构造器和说明 |
---|
ResourceSyncContext() |
限定符和类型 | 方法和说明 |
---|---|
static void |
dispose()
解散
|
static SubRepoMD5Assistant |
getMd5Assistant() |
static com.fr.third.net.sf.ehcache.Ehcache |
getResourcesCache()
获取默认Cache
默认缓存和名称和当前资源仓库的标识一致
|
static ResourceSyncContext.Status |
getStatus()
获取上下文状态
|
static ResourceRepository |
getSub()
下层资源仓库
|
static void |
initialize(ResourceRepository subRepo,
EhCacheMode mode)
初始化
|
static void |
setStatus(ResourceSyncContext.Status status)
设置上下文初始化状态
|
public static ResourceSyncContext.Status getStatus()
public static void setStatus(ResourceSyncContext.Status status)
status
- public static ResourceRepository getSub()
public static void dispose()
public static void initialize(ResourceRepository subRepo, EhCacheMode mode) throws RepositoryException
subRepo
- 下层存储mode
- ehcache模式RepositoryException
public static com.fr.third.net.sf.ehcache.Ehcache getResourcesCache()
默认缓存和名称和当前资源仓库的标识一致
public static SubRepoMD5Assistant getMd5Assistant()