core/src/main/java/org/apache/commons/vfs2/provider/AbstractFileProvider.java
/**
     * Adds a file system to those cached by this provider.  The file system
     * may implement {@link VfsComponent}, in which case it is initialised.
     */
Adds a file system to those cached by this provider.  The file system
may implement  VfsComponent, in which case it is initialised.
Adds a file system to those cached by this provider . The file system may implement VfsComponent in which case it is initialised .
protected void addFileSystem(final Comparable<?> key, final FileSystem fs)
        throws FileSystemException
    {
        addComponent(fs);
        FileSystemKey treeKey = new FileSystemKey(key, fs.getFileSystemOptions());
        ((AbstractFileSystem) fs).setCacheKey(treeKey);
        synchronized (this)
        {
            fileSystems.put(treeKey, fs);
        }
    }
protected void addFileSystem ( final Comparable < ? > key , final FileSystem fs ) throws FileSystemException { addComponent ( fs ) ; FileSystemKey treeKey = new FileSystemKey ( key , fs . getFileSystemOptions ( ) ) ; ( ( AbstractFileSystem ) fs ) . setCacheKey ( treeKey ) ; synchronized ( this ) { fileSystems . put ( treeKey , fs ) ; } }
Adds a file system to those cached by this provider.
Adds a file system to those cached by this provider .
// Add to the cache