Class ResourceFileSystemConfigBuilder

java.lang.Object
org.apache.commons.vfs2.FileSystemConfigBuilder
org.apache.commons.vfs2.provider.res.ResourceFileSystemConfigBuilder

public final class ResourceFileSystemConfigBuilder extends FileSystemConfigBuilder
The config BUILDER for various FTP configuration options.
  • Field Details

  • Constructor Details

    • ResourceFileSystemConfigBuilder

      private ResourceFileSystemConfigBuilder()
  • Method Details

    • getInstance

      public static ResourceFileSystemConfigBuilder getInstance()
      Gets the singleton builder.
      Returns:
      the singleton builder.
    • getClassLoader

      public ClassLoader getClassLoader(FileSystemOptions fileSystemOptions)
      Gets the class loader from the FileSystemOptions.
      Parameters:
      fileSystemOptions - The source FileSystemOptions.
      Returns:
      the class loader from the FileSystemOptions.
    • getConfigClass

      protected Class<? extends FileSystem> getConfigClass()
      Description copied from class: FileSystemConfigBuilder
      Gets the target of this configuration.
      Specified by:
      getConfigClass in class FileSystemConfigBuilder
      Returns:
      the specific file system class
    • setClassLoader

      public void setClassLoader(FileSystemOptions fileSystemOptions, ClassLoader classLoader)
      Sets the class loader in the FileSystemOptions.
      Parameters:
      fileSystemOptions - Target FileSystemOptions.
      classLoader - The data to set.