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 booleanremoves all entries from VFS cache if it not null is returns true if only VFS cache has been removed elsewhere - falsestatic net.sf.ehcache.CacheManagerstatic net.sf.ehcache.Cachestatic booleanregisters VFS catalog if and only if VFS is active
-
Method Details
-
getCacheManager
public static net.sf.ehcache.CacheManager getCacheManager()- Returns:
- the default
CacheManagerconfigured by '/ehcache.xml' from given classpath.
-
getVFSCache
public static net.sf.ehcache.Cache getVFSCache()- Returns:
Cachefor 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.FileSystemExceptionBindingException
-