Class NativeImageUtils

  • public class NativeImageUtils
    extends java.lang.Object
    • Constructor Detail

      • NativeImageUtils

        public NativeImageUtils​(java.lang.String akkaModule,
                                scala.collection.immutable.Seq<NativeImageUtils.ReflectConfigEntry> additionalEntries,
                                scala.collection.immutable.Seq<java.lang.String> packageNames)
    • Method Detail

      • Constructor

        public static java.lang.String Constructor()
      • metadataDir

        public java.nio.file.Path metadataDir()
      • writeMetadata

        public void writeMetadata()
        Generate GraalVM/NativeImage metadata by scanning the classpath for dynamically loaded extension points of Akka.
        metadataDir - The place to write metadata files (usually module resources /META-INF/native-image/organization/artifactId/
        additionalEntries - Additional, up front known entries for the current module, to add
        packageNames - The packages to scan
      • verifyMetadata

        public scala.Tuple2<java.lang.String,​java.lang.String> verifyMetadata()
        For use in tests, throws if existing metadata in given dir does exist, else returns the pre-existing metadata and the metadata scanned from current classpath for comparing with test library comparison utils.
      • generateMetadata

        public java.lang.String generateMetadata()