java.lang.Object
ac.simons.neo4j.migrations.cli.internal.ImageInfo

public final class ImageInfo extends Object
Subset of {code org.graalvm.sdk:graal-sdk} to avoid having the SDK on the classpath. Original licensed under The Universal Permissive License (UPL), Version 1.0.
Author:
GraalVM Team and others
  • Field Details

    • PROPERTY_IMAGE_CODE_KEY

      public static final String PROPERTY_IMAGE_CODE_KEY
      Holds the string that is the name of the system property providing information about the context in which code is currently executing. If the property returns the string given by buildtime the code is executing in the context of image building (e.g. in a static initializer of a class that will be contained in the image). If the property returns the string given by PROPERTY_IMAGE_CODE_VALUE_RUNTIME the code is executing at image runtime. Otherwise, the property is not set.
      See Also:
    • PROPERTY_IMAGE_CODE_VALUE_RUNTIME

      public static final String PROPERTY_IMAGE_CODE_VALUE_RUNTIME
      Holds the string that will be returned by the system property for PROPERTY_IMAGE_CODE_KEY if code is executing at image runtime.
      See Also:
  • Method Details

    • inImageRuntimeCode

      public static boolean inImageRuntimeCode()
      Returns true if (at the time of the call) code is executing at image runtime. This method will be const-folded. It can be used to hide parts of an application that only work when running as native image.