Package org.apache.commons.vfs2.impl
Class StandardFileSystemManager
java.lang.Object
org.apache.commons.vfs2.impl.DefaultFileSystemManager
org.apache.commons.vfs2.impl.StandardFileSystemManager
- All Implemented Interfaces:
- AutoCloseable,- FileSystemManager
A 
FileSystemManager that configures itself from an XML (Default: providers.xml)
 configuration file.
 Certain providers are only loaded and available if the dependent library is in your classpath. You have to configure your debugging facility to log "debug" messages to see if a provider was skipped due to "unresolved externals".
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidScans the classpath to find any dropped plugin.protected DefaultFileReplicatorGets a new DefaultFileReplicator.voidinit()Initializes this manager.voidsetClassLoader(ClassLoader classLoader) Sets the ClassLoader to use to load the providers.voidsetConfiguration(String configUri) Sets the configuration file for this manager.voidsetConfiguration(URL configUri) Sets the configuration file for this manager.Methods inherited from class org.apache.commons.vfs2.impl.DefaultFileSystemManager_closeFileSystem, addExtensionMap, addMimeTypeMap, addOperationProvider, addOperationProvider, addProvider, addProvider, addVirtualFileSystemScheme, canCreateFileSystem, close, closeFileSystem, createFileSystem, createFileSystem, createVirtualFileSystem, createVirtualFileSystem, freeUnusedResources, getBaseFile, getCacheStrategy, getFileContentInfoFactory, getFileObjectDecorator, getFileObjectDecoratorConst, getFilesCache, getFileSystemConfigBuilder, getLogger, getOperationProviders, getProviderCapabilities, getReplicator, getSchemes, getTemporaryFileStore, getURLStreamHandlerFactory, hasProvider, removeProvider, resolveFile, resolveFile, resolveFile, resolveFile, resolveFile, resolveFile, resolveFile, resolveName, resolveName, resolveURI, setBaseFile, setBaseFile, setCacheStrategy, setDefaultProvider, setFileContentInfoFactory, setFileObjectDecorator, setFilesCache, setLogger, setReplicator, setTemporaryFileStore, toFileObjectMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.commons.vfs2.FileSystemManagertoFileObject
- 
Constructor Details- 
StandardFileSystemManagerpublic StandardFileSystemManager()Constructs a new instance.
 
- 
- 
Method Details- 
configurePluginsScans the classpath to find any dropped plugin.The plugin-description has to be in /META-INF/vfs-providers.xml.- Throws:
- FileSystemException- if an error occurs.
 
- 
createDefaultFileReplicatorGets a new DefaultFileReplicator.- Returns:
- a new DefaultFileReplicator.
 
- 
initInitializes this manager. Adds the providers and replicator.- Overrides:
- initin class- DefaultFileSystemManager
- Throws:
- FileSystemException- if an error occurs.
 
- 
setClassLoaderSets the ClassLoader to use to load the providers. Default is to use the ClassLoader that loaded this class.- Parameters:
- classLoader- The ClassLoader.
 
- 
setConfigurationSets the configuration file for this manager.- Parameters:
- configUri- The URI for this manager.
 
- 
setConfigurationSets the configuration file for this manager.- Parameters:
- configUri- The URI for this manager.
 
 
-