public class PluginFileSystemFactory extends Object implements FileSystemFactory
FileSystemFactory
that ensures the plugin classloader is used for all
FileSystem
operations.Modifier and Type | Method and Description |
---|---|
void |
configure(Configuration config)
Optional method for plugins to pick up settings from the configuration.
|
FileSystem |
create(URI fsUri)
Creates a new file system for the given file system URI.
|
ClassLoader |
getClassLoader()
Helper method to get the class loader used to load the plugin.
|
String |
getScheme()
Gets the scheme of the file system created by this factory.
|
static PluginFileSystemFactory |
of(FileSystemFactory inner) |
String |
toString() |
public static PluginFileSystemFactory of(FileSystemFactory inner)
public String getScheme()
FileSystemFactory
getScheme
in interface FileSystemFactory
public ClassLoader getClassLoader()
Plugin
getClassLoader
in interface Plugin
public void configure(Configuration config)
Plugin
public FileSystem create(URI fsUri) throws IOException
FileSystemFactory
create
in interface FileSystemFactory
fsUri
- The URI that describes the file system.IOException
- Thrown if the file system could not be instantiated.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.