Interface LinuxPackage
- All Superinterfaces:
LinuxPackageMixin
,Package
- All Known Subinterfaces:
LinuxDebPackage
,LinuxRpmPackage
Linux package.
Use create(jdk.jpackage.internal.model.Package, jdk.jpackage.internal.model.LinuxPackageMixin)
method to create objects implementing this interface.
-
Nested Class Summary
Nested classes/interfaces inherited from interface jdk.jpackage.internal.model.LinuxPackageMixin
LinuxPackageMixin.Stub
Nested classes/interfaces inherited from interface jdk.jpackage.internal.model.Package
Package.Stub
-
Method Summary
Modifier and TypeMethodDescriptionapp()
Gets the application of this package.static LinuxPackage
create
(Package pkg, LinuxPackageMixin mixin) default boolean
Returnstrue
in this Linux package installs in "/usr" tree.default String
Get the name without an extension of the package file of this package.Gets the layout of the installed app image of the application resolved at the relative installation directory of this package.default String
Gets the version with the release component of this Linux package.Methods inherited from interface jdk.jpackage.internal.model.LinuxPackageMixin
additionalDependencies, arch, category, menuGroupName, release
Methods inherited from interface jdk.jpackage.internal.model.Package
aboutURL, appImageLayout, asApplicationLayout, asInstalledPackageApplicationLayout, asPackageApplicationLayout, asStandardPackageType, description, installedPackageLayout, isRuntimeInstaller, licenseFile, packageFileNameWithSuffix, packageFileSuffix, packageName, predefinedAppImage, relativeInstallDir, type, version
-
Method Details
-
app
LinuxApplication app()Description copied from interface:Package
Gets 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 interfaceLinuxPackageMixin
- Specified by:
packageLayout
in interfacePackage
- Returns:
- the layout of the installed app image of the application resolved at the relative installation directory of this package
- See Also:
-
packageFileName
Description copied from interface:Package
Get the name without an extension of the package file of this package.- Specified by:
packageFileName
in interfacePackage
- Returns:
- the name without an extension of the package file of this package
-
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()Returnstrue
in this Linux package installs in "/usr" tree.- Returns:
true
in this Linux package installs in "/usr" tree
-
create
- Parameters:
pkg
- the generic packagemixin
- Linux-specific details supplementing the Linux package- Returns:
- the proxy dispatching calls to the given objects
-