Class VFSManagerFactory
- java.lang.Object
-
- de.businesscode.bcdui.vfs.provider.database.VFSManagerFactory
-
public class VFSManagerFactory extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.commons.vfs.impl.StandardFileSystemManager
getManager()
Method getVFSManager creates an instance of VFS manager and set configuration filestatic net.sf.ehcache.Cache
getVFSCache()
gets VFS cahe instancestatic boolean
isVFSactive()
if virtual file system is in current application activestatic org.apache.commons.vfs.FileObject[]
readAllChildren()
reads all children of VFS in databasestatic net.sf.ehcache.Cache
registerCacheCatalog()
reads all DB files from VFS and registers files in catalogstatic void
shutdown()
force-shutdown on the filesystem and the manager
-
-
-
Method Detail
-
getManager
public static org.apache.commons.vfs.impl.StandardFileSystemManager getManager() throws org.apache.commons.vfs.FileSystemException
Method getVFSManager creates an instance of VFS manager and set configuration file- Throws:
org.apache.commons.vfs.FileSystemException
-
readAllChildren
public static org.apache.commons.vfs.FileObject[] readAllChildren() throws org.apache.commons.vfs.FileSystemException
reads all children of VFS in database- Throws:
org.apache.commons.vfs.FileSystemException
-
shutdown
public static void shutdown()
force-shutdown on the filesystem and the manager
-
registerCacheCatalog
public static net.sf.ehcache.Cache registerCacheCatalog() throws org.apache.commons.vfs.FileSystemException
reads all DB files from VFS and registers files in catalog- Throws:
org.apache.commons.vfs.FileSystemException
-
getVFSCache
public static net.sf.ehcache.Cache getVFSCache()
gets VFS cahe instance
-
isVFSactive
public static boolean isVFSactive() throws BindingException
if virtual file system is in current application active- Throws:
BindingException
-
-