public class StandardFileSystemManager extends DefaultFileSystemManager
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 and Description |
---|
StandardFileSystemManager() |
Modifier and Type | Method and Description |
---|---|
protected void |
configurePlugins()
Scans the classpath to find any droped plugin.
|
protected DefaultFileReplicator |
createDefaultFileReplicator() |
void |
init()
Initializes this manager.
|
void |
setClassLoader(ClassLoader classLoader)
Sets the ClassLoader to use to load the providers.
|
void |
setConfiguration(String configUri)
Sets the configuration file for this manager.
|
void |
setConfiguration(URL configUri)
Sets the configuration file for this manager.
|
_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, toFileObject
public void setConfiguration(String configUri)
configUri
- The URI for this manager.public void setConfiguration(URL configUri)
configUri
- The URI forthis manager.public void setClassLoader(ClassLoader classLoader)
classLoader
- The ClassLoader.public void init() throws FileSystemException
init
in class DefaultFileSystemManager
FileSystemException
- if an error occurs.protected void configurePlugins() throws FileSystemException
The plugin-description has to be in /META-INF/vfs-providers.xml
.
FileSystemException
- if an error occurs.protected DefaultFileReplicator createDefaultFileReplicator()
Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.