gw.lang.reflect.module.IFileSystem Maven / Gradle / Ivy
/*
* Copyright 2014 Guidewire Software, Inc.
*/
package gw.lang.reflect.module;
import gw.config.IService;
import gw.fs.IDirectory;
import gw.fs.IFile;
import gw.lang.UnstableAPI;
import java.io.File;
import java.net.URL;
import java.nio.file.Path;
@UnstableAPI
public interface IFileSystem extends IService {
IDirectory getIDirectory(File dir);
IDirectory getIDirectory( Path dir );
IFile getIFile(File file);
IFile getIFile( Path file );
void setCachingMode(CachingMode cachingMode);
void clearAllCaches();
IDirectory getIDirectory(URL url);
IFile getIFile( URL url );
IFile getFakeFile(URL url, IModule module);
public enum CachingMode {
NO_CACHING,
CHECK_TIMESTAMPS,
FUZZY_TIMESTAMPS,
FULL_CACHING
}
}