Top Description Fields Constructors Methods
org.springframework.aot.nativex

public Class FileNativeConfigurationWriter

extends NativeConfigurationWriter
Class Inheritance
Imports
java.io.File, .FileWriter, .IOException, .Writer, java.nio.file.Path, java.util.function.Consumer, org.springframework.lang.Nullable

A NativeConfigurationWriter implementation that writes the configuration to disk.
Authors
Sebastien Deleuze, Stephane Nicoll
Since
6.0
See Also
Native Image Build Configuration

Field Summary

Modifier and TypeField and Description
private final String
private final Path
private final String

Constructor Summary

AccessConstructor and Description
public
public
FileNativeConfigurationWriter(Path basePath, String groupId, String artifactId)

Method Summary

Modifier and TypeMethod and Description
private File
private BasicJsonWriter
protected void
writeTo(String
the name of the file
fileName
,
Consumer<BasicJsonWriter>
a consumer for the writer to use
writer
)

Implements abstract org.springframework.aot.nativex.NativeConfigurationWriter.writeTo.

Write the specified GraalVM native configuration file, using the provided BasicJsonWriter.

Inherited from org.springframework.aot.nativex.NativeConfigurationWriter:
write

Field Detail

artifactIdback to summary
private final String artifactId
Annotations
@Nullable
basePathback to summary
private final Path basePath
groupIdback to summary
private final String groupId
Annotations
@Nullable

Constructor Detail

FileNativeConfigurationWriterback to summary
public FileNativeConfigurationWriter(Path basePath)
FileNativeConfigurationWriterback to summary
public FileNativeConfigurationWriter(Path basePath, String groupId, String artifactId)

Method Detail

createIfNecessaryback to summary
private File createIfNecessary(String filename) throws IOException
createJsonWriterback to summary
private BasicJsonWriter createJsonWriter(Writer out)
writeToback to summary
protected void writeTo(String fileName, Consumer<BasicJsonWriter> writer)

Implements abstract org.springframework.aot.nativex.NativeConfigurationWriter.writeTo.

Doc from org.springframework.aot.nativex.NativeConfigurationWriter.writeTo.

Write the specified GraalVM native configuration file, using the provided BasicJsonWriter.

Parameters
fileName:String

the name of the file

writer:Consumer<BasicJsonWriter>

a consumer for the writer to use

Annotations
@Override