Package org.springframework.aot.generate
Class FileSystemGeneratedFiles
java.lang.Object
org.springframework.aot.generate.FileSystemGeneratedFiles
- All Implemented Interfaces:
- GeneratedFiles
GeneratedFiles implementation that stores generated files using a
 FileSystem.- Since:
- 6.0
- Author:
- Phillip Webb
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.springframework.aot.generate.GeneratedFilesGeneratedFiles.Kind
- 
Constructor SummaryConstructorsConstructorDescriptionFileSystemGeneratedFiles(Path root) Create a newFileSystemGeneratedFilesinstance with all files stored under the specificroot.Create a newFileSystemGeneratedFilesinstance with all files stored under the root provided by the givenFunction.
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddFile(GeneratedFiles.Kind kind, String path, InputStreamSource content) Add a generated file of the specifiedGeneratedFiles.Kindwith content from the givenInputStreamSource.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.aot.generate.GeneratedFilesaddClassFile, addFile, addFile, addResourceFile, addResourceFile, addResourceFile, addSourceFile, addSourceFile, addSourceFile, addSourceFile
- 
Constructor Details- 
FileSystemGeneratedFilesCreate a newFileSystemGeneratedFilesinstance with all files stored under the specificroot. The following subdirectories are created for the different filekinds:- sources
- resources
- classes
 - Parameters:
- root- the root path
- See Also:
 
- 
FileSystemGeneratedFilesCreate a newFileSystemGeneratedFilesinstance with all files stored under the root provided by the givenFunction.- Parameters:
- roots- a function that returns the root to use for the given- GeneratedFiles.Kind
 
 
- 
- 
Method Details- 
addFileDescription copied from interface:GeneratedFilesAdd a generated file of the specifiedGeneratedFiles.Kindwith content from the givenInputStreamSource.- Specified by:
- addFilein interface- GeneratedFiles
- Parameters:
- kind- the kind of file being written
- path- the relative path of the file
- content- an- InputStreamSourcethat will provide an input stream containing the file contents
 
 
-