Interface RuntimeLayout
- All Superinterfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic RuntimeLayoutCreates Java runtime app image layout.default RuntimeLayoutmap(UnaryOperator<Path> mapper) Returns a copy of this app image layout with the specified mapper applied to every path.default RuntimeLayoutReturns 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.default RuntimeLayoutCreates a copy of this app image layout resolved at the given root directory.default RuntimeLayoutReturns 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
-
DEFAULT
Singleton.AppImageLayout.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 Details
-
resolveAt
Description copied from interface:AppImageLayoutCreates a copy of this app image layout resolved at the given root directory.- Specified by:
resolveAtin interfaceAppImageLayout- 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
Description copied from interface:AppImageLayoutReturns 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:
resetRootDirectoryin interfaceAppImageLayout- Returns:
- an app image layout with the root directory set to an empty path
-
unresolve
Description copied from interface:AppImageLayoutReturns 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:
unresolvein interfaceAppImageLayout- Returns:
- an app image layout resolved at
Path.of("")path
-
map
Description copied from interface:AppImageLayoutReturns a copy of this app image layout with the specified mapper applied to every path.- Specified by:
mapin interfaceAppImageLayout- 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
Creates Java runtime app image layout.AppImageLayout.runtimeDirectory()method called on the created object will return the value of theruntimeDirectoryparameter.AppImageLayout.rootDirectory()method called on the created object will returnPath.of("")value.- Parameters:
runtimeDirectory- Java runtime directory- Returns:
- Java runtime app image layout
-