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()
Constructs a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected void |
configurePlugins()
Scans the classpath to find any dropped plugin.
|
protected DefaultFileReplicator |
createDefaultFileReplicator()
Gets a new DefaultFileReplicator.
|
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toFileObject
public StandardFileSystemManager()
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()
public void init() throws FileSystemException
init
in class DefaultFileSystemManager
FileSystemException
- if an error occurs.public void setClassLoader(ClassLoader classLoader)
classLoader
- The ClassLoader.public void setConfiguration(String configUri)
configUri
- The URI for this manager.public void setConfiguration(URL configUri)
configUri
- The URI for this manager.Copyright © 2002–2025 The Apache Software Foundation. All rights reserved.