Interface ApplicationLayout
- All Superinterfaces:
AppImageLayout,ApplicationLayoutMixin
Application app image layout.
Application is comprised from application files and Java runtime.
Use build() or buildFrom(ApplicationLayout) methods to
configure and construct instances of this interface.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface jdk.jpackage.internal.model.AppImageLayout
AppImageLayout.StubNested classes/interfaces inherited from interface jdk.jpackage.internal.model.ApplicationLayoutMixin
ApplicationLayoutMixin.Stub -
Method Summary
Modifier and TypeMethodDescriptionstatic ApplicationLayout.Builderbuild()static ApplicationLayout.BuilderbuildFrom(ApplicationLayout appLayout) static ApplicationLayoutcreate(AppImageLayout appImage, ApplicationLayoutMixin mixin) Creates an object implementingApplicationLayoutinterface fromAppImageLayoutandApplicationLayoutMixininstances.default ApplicationLayoutmap(UnaryOperator<Path> mapper) Returns a copy of this app image layout with the specified mapper applied to every path.default ApplicationLayoutReturns 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 ApplicationLayoutCreates a copy of this app image layout resolved at the given root directory.default ApplicationLayoutReturns 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, runtimeDirectoryMethods inherited from interface jdk.jpackage.internal.model.ApplicationLayoutMixin
appDirectory, appModsDirectory, contentDirectory, desktopIntegrationDirectory, launchersDirectory
-
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
-
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
-
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
-
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 an object implementingApplicationLayoutinterface fromAppImageLayoutandApplicationLayoutMixininstances.- Parameters:
appImage- app image layout objectmixin- application layout mixin for the app image layout- Returns:
- new object implementing
ApplicationLayoutinterface
-
build
-
buildFrom
-