Top Description Constructors Methods
org.springframework.aot.nativex

public abstract Class NativeConfigurationWriter

extends Object
Class Inheritance
Known Direct Subclasses
org.springframework.aot.nativex.FileNativeConfigurationWriter
Imports
java.util.function.Consumer, org.springframework.aot.hint.ProxyHints, .ReflectionHints, .ResourceHints, .RuntimeHints, .SerializationHints

Write RuntimeHints as GraalVM native configuration.
Authors
Sebastien Deleuze, Stephane Nicoll, Janne Valkealahti
Since
6.0
See Also
Native Image Build Configuration

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
write(RuntimeHints
the hints to handle
hints
)

Write the GraalVM native configuration from the provided hints.

private void
private void
private void
private void
private void
protected abstract void
writeTo(String
the name of the file
fileName
,
Consumer<BasicJsonWriter>
a consumer for the writer to use
writer
)

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

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

NativeConfigurationWriterback to summary
public NativeConfigurationWriter()

Method Detail

writeback to summary
public void write(RuntimeHints hints)

Write the GraalVM native configuration from the provided hints.

Parameters
hints:RuntimeHints

the hints to handle

writeJniHintsback to summary
private void writeJniHints(ReflectionHints hints)
writeProxyHintsback to summary
private void writeProxyHints(ProxyHints hints)
writeReflectionHintsback to summary
private void writeReflectionHints(ReflectionHints hints)
writeResourceHintsback to summary
private void writeResourceHints(ResourceHints hints)
writeSerializationHintsback to summary
private void writeSerializationHints(SerializationHints hints)
writeToback to summary
protected abstract void writeTo(String fileName, Consumer<BasicJsonWriter> writer)

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