Class FileManager
java.lang.Object
javax.tools.ForwardingJavaFileManager<JavaFileManager>
org.glassfish.jersey.examples.reload.compiler.FileManager
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable,JavaFileManager,OptionChecker
File manager delegator to control our source and class files.
- Author:
- Jakub Podlesak (jakub.podlesak @ oracle.com)
-
Nested Class Summary
Nested classes/interfaces inherited from interface javax.tools.JavaFileManager
JavaFileManager.Location -
Field Summary
Fields inherited from class javax.tools.ForwardingJavaFileManager
fileManager -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFileManager(JavaFileManager fileManager, List<ClassFile> classFiles, AppClassLoader cl) Creates a new instance of FileManager. -
Method Summary
Modifier and TypeMethodDescriptiongetClassLoader(JavaFileManager.Location location) getJavaFileForOutput(JavaFileManager.Location location, String className, JavaFileObject.Kind kind, FileObject sibling) Methods inherited from class javax.tools.ForwardingJavaFileManager
close, contains, flush, getFileForInput, getFileForOutput, getJavaFileForInput, getLocationForModule, getLocationForModule, getServiceLoader, handleOption, hasLocation, inferBinaryName, inferModuleName, isSameFile, isSupportedOption, list, listLocationsForModules
-
Constructor Details
-
FileManager
Creates a new instance of FileManager.- Parameters:
fileManager- delegate to this file managercl-
-
-
Method Details
-
getJavaFileForOutput
public JavaFileObject getJavaFileForOutput(JavaFileManager.Location location, String className, JavaFileObject.Kind kind, FileObject sibling) throws IOException - Specified by:
getJavaFileForOutputin interfaceJavaFileManager- Overrides:
getJavaFileForOutputin classForwardingJavaFileManager<JavaFileManager>- Throws:
IOException
-
getClassLoader
- Specified by:
getClassLoaderin interfaceJavaFileManager- Overrides:
getClassLoaderin classForwardingJavaFileManager<JavaFileManager>
-