Class VFSManagerFactory
java.lang.Object
de.businesscode.bcdui.vfs.provider.database.VFSManagerFactory
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.commons.vfs2.impl.StandardFileSystemManager
Method getVFSManager creates an instance of VFS manager and set configuration filestatic net.sf.ehcache.Cache
gets VFS cahe instancestatic boolean
if virtual file system is in current application activestatic org.apache.commons.vfs2.FileObject[]
reads all children of VFS in databasestatic net.sf.ehcache.Cache
reads all DB files from VFS and registers files in catalogstatic void
shutdown()
force-shutdown on the filesystem and the manager
-
Method Details
-
getManager
public static org.apache.commons.vfs2.impl.StandardFileSystemManager getManager() throws org.apache.commons.vfs2.FileSystemExceptionMethod getVFSManager creates an instance of VFS manager and set configuration file- Throws:
org.apache.commons.vfs2.FileSystemException
-
readAllChildren
public static org.apache.commons.vfs2.FileObject[] readAllChildren() throws org.apache.commons.vfs2.FileSystemExceptionreads all children of VFS in database- Throws:
org.apache.commons.vfs2.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.vfs2.FileSystemExceptionreads all DB files from VFS and registers files in catalog- Throws:
org.apache.commons.vfs2.FileSystemException
-
getVFSCache
public static net.sf.ehcache.Cache getVFSCache()gets VFS cahe instance -
isVFSactive
if virtual file system is in current application active- Throws:
BindingException
-