APIdia Launch Partner
Top Description Fields Methods
jdk.jpackage.internal.model

public Interface RuntimeLayout

extends AppImageLayout
Static Imports
jdk.jpackage.internal.util.PathUtils.mapNullablePath

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.

Field Summary

Modifier and TypeField and Description
public static final RuntimeLayout
DEFAULT

Singleton.

Method Summary

Modifier and TypeMethod and Description
public static RuntimeLayout

Returns:

Java runtime app image layout
create
(Path
Java runtime directory
runtimeDirectory
)

Creates Java runtime app image layout.

private static RuntimeLayout
public default RuntimeLayout
map(UnaryOperator<Path> mapper)

Implements jdk.jpackage.internal.model.AppImageLayout.map.

Returns a copy of this app image layout with the specified mapper applied to every path.

public default RuntimeLayout
resetRootDirectory()

Implements jdk.jpackage.internal.model.AppImageLayout.resetRootDirectory.

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.

public default RuntimeLayout
resolveAt(Path root)

Overrides default jdk.jpackage.internal.model.AppImageLayout.resolveAt.

Creates a copy of this app image layout resolved at the given root directory.

public default RuntimeLayout
unresolve()

Overrides default jdk.jpackage.internal.model.AppImageLayout.unresolve.

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.

Inherited from jdk.jpackage.internal.model.AppImageLayout:
isResolvedrootDirectoryruntimeDirectorytoPathGroup

Field Detail

DEFAULTback to summary
public static final RuntimeLayout DEFAULT

Singleton.

runtimeDirectory() of the singleton returns empty string (""), i.e. the runtime directory is the same as the directory at which the layout is resolved.

Method Detail

createback to summary
public static RuntimeLayout create(Path runtimeDirectory)

Creates Java runtime app image layout.

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

Parameters
runtimeDirectory:Path

Java runtime directory

Returns:RuntimeLayout

Java runtime app image layout

createback to summary
private static RuntimeLayout create(AppImageLayout layout)
mapback to summary
public default RuntimeLayout map(UnaryOperator<Path> mapper)

Implements jdk.jpackage.internal.model.AppImageLayout.map.

Doc from jdk.jpackage.internal.model.AppImageLayout.map.

Returns a copy of this app image layout with the specified mapper applied to every path.

Annotations
@Override
resetRootDirectoryback to summary
public default RuntimeLayout resetRootDirectory()

Implements jdk.jpackage.internal.model.AppImageLayout.resetRootDirectory.

Doc from jdk.jpackage.internal.model.AppImageLayout.resetRootDirectory.

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.

Annotations
@Override
resolveAtback to summary
public default RuntimeLayout resolveAt(Path root)

Overrides default jdk.jpackage.internal.model.AppImageLayout.resolveAt.

Doc from jdk.jpackage.internal.model.AppImageLayout.resolveAt.

Creates a copy of this app image layout resolved at the given root directory.

Annotations
@Override
unresolveback to summary
public default RuntimeLayout unresolve()

Overrides default jdk.jpackage.internal.model.AppImageLayout.unresolve.

Doc from jdk.jpackage.internal.model.AppImageLayout.unresolve.

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.

Annotations
@Override