Interface LinuxPackage

All Superinterfaces:
LinuxPackageMixin, Package
All Known Subinterfaces:
LinuxDebPackage, LinuxRpmPackage

public interface LinuxPackage extends Package, LinuxPackageMixin
Linux package.

Use create(jdk.jpackage.internal.model.Package, jdk.jpackage.internal.model.LinuxPackageMixin) method to create objects implementing this interface.

  • Method Details

    • app

      Description copied from interface: Package
      Gets the application of this package.
      Specified by:
      app in interface Package
      Returns:
      the application of this package
    • packageLayout

      AppImageLayout packageLayout()
      Description copied from interface: Package
      Gets the layout of the installed app image of the application resolved at the relative installation directory of this package.
      Specified by:
      packageLayout in interface LinuxPackageMixin
      Specified by:
      packageLayout in interface Package
      Returns:
      the layout of the installed app image of the application resolved at the relative installation directory of this package
      See Also:
    • packageFileName

      default String packageFileName()
      Description copied from interface: Package
      Get the name without an extension of the package file of this package.
      Specified by:
      packageFileName in interface Package
      Returns:
      the name without an extension of the package file of this package
    • versionWithRelease

      default String versionWithRelease()
      Gets the version with the release component of this Linux package.
      Returns:
      the version with the release component of this Linux package
    • isInstallDirInUsrTree

      default boolean isInstallDirInUsrTree()
      Returns true in this Linux package installs in "/usr" tree.
      Returns:
      true in this Linux package installs in "/usr" tree
    • create

      static LinuxPackage create(Package pkg, LinuxPackageMixin mixin)
      Constructs LinuxPackage instance from the given Package and LinuxPackageMixin instances.
      Parameters:
      pkg - the generic package
      mixin - Linux-specific details supplementing the Linux package
      Returns:
      the proxy dispatching calls to the given objects