Class FileNativeConfigurationWriter

java.lang.Object
org.springframework.aot.nativex.NativeConfigurationWriter
org.springframework.aot.nativex.FileNativeConfigurationWriter

public class FileNativeConfigurationWriter extends NativeConfigurationWriter
A NativeConfigurationWriter implementation that writes the configuration to disk.
Since:
6.0
Author:
Sebastien Deleuze, Stephane Nicoll
See Also:
  • Constructor Details

    • FileNativeConfigurationWriter

      public FileNativeConfigurationWriter(Path basePath)
    • FileNativeConfigurationWriter

      public FileNativeConfigurationWriter(Path basePath, @Nullable String groupId, @Nullable String artifactId)
  • Method Details

    • writeTo

      protected void writeTo(String fileName, Consumer<org.springframework.aot.nativex.BasicJsonWriter> writer)
      Description copied from class: NativeConfigurationWriter
      Write the specified GraalVM native configuration file, using the provided BasicJsonWriter.
      Specified by:
      writeTo in class NativeConfigurationWriter
      Parameters:
      fileName - the name of the file
      writer - a consumer for the writer to use