Interface RuntimeLayout

All Superinterfaces:
AppImageLayout

public interface RuntimeLayout extends AppImageLayout
Java runtime app image layout.

Use DEFAULT field to get the default runtime app image layout or create(Path) method to create custom runtime app image layout.

  • Nested Class Summary

    Nested classes/interfaces inherited from interface jdk.jpackage.internal.model.AppImageLayout

    AppImageLayout.Stub
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final RuntimeLayout
    Singleton.
  • Method Summary

    Modifier and Type
    Method
    Description
    create(Path runtimeDirectory)
    Creates Java runtime app image layout.
    Returns a copy of this app image layout with the specified mapper applied to every path.
    Returns a copy of this app image layout with the root directory set to an empty path (Path.of("")) or this instance if its root directory is already an empty path.
    Creates a copy of this app image layout resolved at the given root directory.
    Returns a copy of this app image layout resolved such that its root directory is set to an empty path (Path.of("")) or this instance if its root directory is already an empty path.

    Methods inherited from interface jdk.jpackage.internal.model.AppImageLayout

    isResolved, rootDirectory, runtimeDirectory
  • Field Details

  • Method Details

    • resolveAt

      default RuntimeLayout resolveAt(Path root)
      Description copied from interface: AppImageLayout
      Creates a copy of this app image layout resolved at the given root directory.
      Specified by:
      resolveAt in interface AppImageLayout
      Parameters:
      root - path to a directory at which to resolve the layout
      Returns:
      a copy of this app image layout resolved at the given root directory
    • resetRootDirectory

      default RuntimeLayout resetRootDirectory()
      Description copied from interface: AppImageLayout
      Returns a copy of this app image layout with the root directory set to an empty path (Path.of("")) or this instance if its root directory is already an empty path.
      Specified by:
      resetRootDirectory in interface AppImageLayout
      Returns:
      an app image layout with the root directory set to an empty path
    • unresolve

      default RuntimeLayout unresolve()
      Description copied from interface: AppImageLayout
      Returns a copy of this app image layout resolved such that its root directory is set to an empty path (Path.of("")) or this instance if its root directory is already an empty path.
      Specified by:
      unresolve in interface AppImageLayout
      Returns:
      an app image layout resolved at Path.of("") path
    • map

      default RuntimeLayout map(UnaryOperator<Path> mapper)
      Description copied from interface: AppImageLayout
      Returns a copy of this app image layout with the specified mapper applied to every path.
      Specified by:
      map in interface AppImageLayout
      Parameters:
      mapper - the mapper to use with every path in this app image layout.
      Returns:
      the copy of this app image layout with the specified mapper applied to every path
    • create

      static RuntimeLayout create(Path runtimeDirectory)
      Creates Java runtime app image layout.

      AppImageLayout.runtimeDirectory() method called on the created object will return the value of the runtimeDirectory parameter. AppImageLayout.rootDirectory() method called on the created object will return Path.of("") value.

      Parameters:
      runtimeDirectory - Java runtime directory
      Returns:
      Java runtime app image layout