/** * Called while the lock is held * * @param fileSystem The file system to close. */ private void close(final FileSystem fileSystem) { if (log.isDebugEnabled()) { log.debug("close fs: " + fileSystem.getRootName()); } fileSystemCache.remove(fileSystem); if (fileSystemCache.size() < 1) { endThread(); } /* * This is not thread-safe as another thread might be opening the file system ((DefaultFileSystemManager) * getContext().getFileSystemManager()) ._closeFileSystem(filesystem); */ }
/** * Called while the lock is held * * @param fileSystem The file system to close. */ private void close(final FileSystem fileSystem) { if (log.isDebugEnabled()) { log.debug("close fs: " + fileSystem.getRootName()); } fileSystemCache.remove(fileSystem); if (fileSystemCache.size() < 1) { endThread(); } /* * This is not thread-safe as another thread might be opening the file system ((DefaultFileSystemManager) * getContext().getFileSystemManager()) ._closeFileSystem(filesystem); */ }
/** * Called while the lock is held * * @param fileSystem The file system to close. */ private void close(final FileSystem fileSystem) { if (log.isDebugEnabled()) { log.debug("close fs: " + fileSystem.getRootName()); } fileSystemCache.remove(fileSystem); if (fileSystemCache.size() < 1) { endThread(); } /* * This is not thread-safe as another thread might be opening the file system ((DefaultFileSystemManager) * getContext().getFileSystemManager()) ._closeFileSystem(filesystem); */ }
/** * Called while the lock is held * @param fileSystem The file system to close. */ private void close(final FileSystem fileSystem) { if (log.isDebugEnabled()) { log.debug("close fs: " + fileSystem.getRootName()); } fileSystemCache.remove(fileSystem); if (fileSystemCache.size() < 1) { endThread(); } /* This is not thread-safe as another thread might be opening the file system ((DefaultFileSystemManager) getContext().getFileSystemManager()) ._closeFileSystem(filesystem); */ }
private boolean _tryCloseFileSystem(final FileSystem filesystem) { final FileProvider provider = providers.get(filesystem.getRootName().getScheme()); if (provider != null) { return ((AbstractFileProvider) provider).tryCloseFileSystem(filesystem); } else if (filesystem instanceof VirtualFileSystem) { // vfsProvider does not implement AbstractFileProvider vfsProvider.closeFileSystem(filesystem); } return true; } //[IntelliJ] no freezes on dispose ---------
/** * Closes the given file system. * <p> * If you use VFS as singleton it is VERY dangerous to call this method * </p> * * @param filesystem The FileSystem to close. */ public void _closeFileSystem(final FileSystem filesystem) { final FileProvider provider = providers.get(filesystem.getRootName().getScheme()); if (provider != null) { ((AbstractFileProvider) provider).closeFileSystem(filesystem); } else if (filesystem instanceof VirtualFileSystem) { // vfsProvider does not implement AbstractFileProvider vfsProvider.closeFileSystem(filesystem); } }
/** * Closes the given file system. * <p> * If you use VFS as singleton it is VERY dangerous to call this method * </p> * * @param filesystem The FileSystem to close. */ public void _closeFileSystem(final FileSystem filesystem) { final FileProvider provider = providers.get(filesystem.getRootName().getScheme()); if (provider != null) { ((AbstractFileProvider) provider).closeFileSystem(filesystem); } else if (filesystem instanceof VirtualFileSystem) { // vfsProvider does not implement AbstractFileProvider vfsProvider.closeFileSystem(filesystem); } }
/** * Closes the given file system. * <p> * If you use VFS as singleton it is VERY dangerous to call this method * </p> * * @param filesystem The FileSystem to close. */ public void _closeFileSystem(final FileSystem filesystem) { final FileProvider provider = providers.get(filesystem.getRootName().getScheme()); if (provider != null) { ((AbstractFileProvider) provider).closeFileSystem(filesystem); } else if (filesystem instanceof VirtualFileSystem) { // vfsProvider does not implement AbstractFileProvider vfsProvider.closeFileSystem(filesystem); } }
/** * Closes the given file system. * <p> * If you use VFS as singleton it is VERY dangerous to call this method * </p> * * @param filesystem The FileSystem to close. */ public void _closeFileSystem(final FileSystem filesystem) { final FileProvider provider = providers.get(filesystem.getRootName().getScheme()); if (provider != null) { ((AbstractFileProvider) provider).closeFileSystem(filesystem); } else if (filesystem instanceof VirtualFileSystem) { // vfsProvider does not implement AbstractFileProvider vfsProvider.closeFileSystem(filesystem); } }
/** * Attaches this file object to its file resource. */ @Override protected void doAttach() throws Exception { if (part == null) { if (!getName().equals(getFileSystem().getRootName())) { final MimeFileObject foParent = (MimeFileObject) FileObjectUtils.getAbstractFileObject(getParent()); setPart(foParent.findPart(getName().getBaseName())); return; } setPart(((MimeFileSystem) getFileSystem()).createCommunicationLink()); } }
/** * Attaches this file object to its file resource. */ @Override protected void doAttach() throws Exception { if (part == null) { if (!getName().equals(getFileSystem().getRootName())) { MimeFileObject foParent = (MimeFileObject) FileObjectUtils.getAbstractFileObject(getParent()); setPart(foParent.findPart(getName().getBaseName())); return; } setPart(((MimeFileSystem) getFileSystem()).createCommunicationLink()); } }