Class CacheFactory


  • public class CacheFactory
    extends java.lang.Object
    Cache factory to BCD-UI managed caches, (currently backed by ehCache v2). You can access the CacheManager via getCacheManager()
    • 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 - false
      static net.sf.ehcache.CacheManager getCacheManager()  
      static net.sf.ehcache.Cache getVFSCache()  
      static boolean registerVFSCatalog()
      registers VFS catalog if and only if VFS is active
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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