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

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

Introduction

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

Prototype

public LRUFilesCache() 

Source Link

Document

Default constructor.

Usage

From source file:com.newatlanta.appengine.junit.vfs.provider.GaeProviderTestCase.java

public FilesCache getFilesCache() {
    if (cache == null) {
        cache = new LRUFilesCache();
    }
    return cache;
}

From source file:com.newatlanta.appengine.vfs.provider.GaeFileSystemManager.java

/**
 * Prepare for initialization. /* ww w  .  j a  va2  s  .  c  om*/
 */
public void prepare(String rootPath, URL configUrl) throws FileSystemException {
    setFilesCache(new LRUFilesCache());
    setCacheStrategy(CacheStrategy.ON_RESOLVE);
    setConfiguration(configUrl);

    this.rootPath = new File(rootPath).getAbsolutePath();
}