List of usage examples for org.apache.commons.vfs.cache LRUFilesCache LRUFilesCache
public LRUFilesCache()
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(); }