Package de.businesscode.bcdui.cache
Class CacheFactory
java.lang.Object
de.businesscode.bcdui.cache.CacheFactory
Cache factory to BCD-UI managed caches, (currently backed by ehCache v2). You can access the
CacheManager
via getCacheManager()
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
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
static net.sf.ehcache.Cache
static boolean
registers VFS catalog if and only if VFS is active
-
Method Details
-
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.vfs2.FileSystemException, BindingExceptionregisters VFS catalog if and only if VFS is active- Throws:
org.apache.commons.vfs2.FileSystemException
BindingException
-