Example usage for org.apache.commons.vfs.cache SoftRefFilesCache SoftRefFilesCache

List of usage examples for org.apache.commons.vfs.cache SoftRefFilesCache SoftRefFilesCache

Introduction

In this page you can find the example usage for org.apache.commons.vfs.cache SoftRefFilesCache SoftRefFilesCache.

Prototype

public SoftRefFilesCache() 

Source Link

Usage

From source file:functionalTests.vfsprovider.TestProActiveProvider.java

public void setUp() throws IOException, URISyntaxException {
    cache = new SoftRefFilesCache();
    setUpTestDir();
    startDeployer();
}

From source file:org.jclouds.vfs.tools.blobstore.BlobStoreShell.java

private BlobStoreShell(String uri) throws FileSystemException {
    remoteMgr = new DefaultFileSystemManager();
    remoteMgr.setFilesCache(new SoftRefFilesCache());
    remoteMgr.addProvider("blobstore", new BlobStoreFileProvider());
    remoteMgr.init();// w ww . ja v  a2  s.c o  m
    remoteCwd = remoteMgr.resolveFile(checkNotNull(uri, "uri"));
    mgr = VFS.getManager();
    cwd = mgr.resolveFile(System.getProperty("user.dir"));
    reader = new BufferedReader(new InputStreamReader(System.in));
}

From source file:org.sonatype.gshell.vfs.builder.FileSystemManagerBuilder.java

private void installDefaults() {
    if (filesCache == null) {
        filesCache = new SoftRefFilesCache();
    }//  ww w.jav a  2  s . c  o m

    if (fileReplicator == null || temporaryFileStore == null) {
        DefaultFileReplicator replicator = new DefaultFileReplicator();
        if (fileReplicator == null) {
            fileReplicator = new PrivilegedFileReplicator(replicator);
        }
        if (temporaryFileStore == null) {
            temporaryFileStore = replicator;
        }
    }

    if (fileContentInfoFactory == null) {
        fileContentInfoFactory = new FileContentInfoFilenameFactory();
    }

    if (defaultProvider == null) {
        defaultProvider = new UrlFileProvider();
    }
}