Package akka.testkit.internal
Class NativeImageUtils
- java.lang.Object
-
- akka.testkit.internal.NativeImageUtils
-
public class NativeImageUtils extends java.lang.Object
INTERNAL API
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NativeImageUtils.Condition
static class
NativeImageUtils.Condition$
static class
NativeImageUtils.ReflectConfigEntry
static class
NativeImageUtils.ReflectConfigEntry$
static class
NativeImageUtils.ReflectField
static class
NativeImageUtils.ReflectField$
static class
NativeImageUtils.ReflectMethod
static class
NativeImageUtils.ReflectMethod$
-
Constructor Summary
Constructors Constructor Description NativeImageUtils(java.lang.String akkaModule, scala.collection.immutable.Seq<NativeImageUtils.ReflectConfigEntry> additionalEntries, scala.collection.immutable.Seq<java.lang.String> packageNames)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.String
Constructor()
java.lang.String
generateMetadata()
java.nio.file.Path
metadataDir()
static NativeImageUtils.ReflectField
ModuleField()
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.void
writeMetadata()
Generate GraalVM/NativeImage metadata by scanning the classpath for dynamically loaded extension points of Akka.
-
-
-
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()
-
ModuleField
public static NativeImageUtils.ReflectField ModuleField()
-
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.- Parameters:
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 addpackageNames
- 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()
-
-