Package de.businesscode.bcdui.cache
Class CacheFactory
- java.lang.Object
-
- de.businesscode.bcdui.cache.CacheFactory
-
public class CacheFactory extends java.lang.Object
Cache factory to BCD-UI managed caches, (currently backed by ehCache v2). You can access theCacheManager
viagetCacheManager()
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
clearVFScache()
removes all entries from VFS cache if it not null is returns true if only VFS cache has been removed elsewhere - falsestatic net.sf.ehcache.CacheManager
getCacheManager()
static net.sf.ehcache.Cache
getVFSCache()
static boolean
registerVFSCatalog()
registers VFS catalog if and only if VFS is active
-
-
-
Method Detail
-
getCacheManager
public static net.sf.ehcache.CacheManager getCacheManager()
- Returns:
- the default
CacheManager
configured by '/ehcache.xml' from given classpath.
-
getVFSCache
public static net.sf.ehcache.Cache getVFSCache()
- Returns:
Cache
for VFS entries.
-
clearVFScache
public static boolean clearVFScache()
removes all entries from VFS cache if it not null is returns true if only VFS cache has been removed elsewhere - false
-
registerVFSCatalog
public static boolean registerVFSCatalog() throws org.apache.commons.vfs.FileSystemException, BindingException
registers VFS catalog if and only if VFS is active- Throws:
org.apache.commons.vfs.FileSystemException
BindingException
-
-