Class CacheFactory

java.lang.Object
de.businesscode.bcdui.cache.CacheFactory

public class CacheFactory extends Object
Cache factory to BCD-UI managed caches, (currently backed by ehCache v2). You can access the CacheManager via getCacheManager()
  • 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, BindingException
      registers VFS catalog if and only if VFS is active
      Throws:
      org.apache.commons.vfs2.FileSystemException
      BindingException