APIdia Launch Partner
Top Inners Fields Constructors Methods
jdk.jpackage.internal

pack-priv final Class JLinkRuntimeBuilder

extends Object
implements RuntimeBuilder
Class Inheritance
All Implemented Interfaces
jdk.jpackage.internal.model.RuntimeBuilder
Static Imports
jdk.jpackage.internal.model.RuntimeBuilder.getDefaultModulePath, jdk.jpackage.internal.util.function.ThrowingRunnable.toRunnable

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private static final String
private static final String
private final List<String>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
create(AppImageLayout appImageLayout)

Implements jdk.jpackage.internal.model.RuntimeBuilder.create.

Creates Java runtime in the given app image.

private static List<String>
createJLinkCmdline(List<Path> modulePath, Set<String> addModules, Set<String> limitModules, List<String> options, List<LauncherStartupInfo> startupInfos)

pack-priv static RuntimeBuilder
createJLinkRuntimeBuilder(List<Path> modulePath, Set<String> addModules, Set<String> limitModules, List<String> options, List<LauncherStartupInfo> startupInfos)

pack-priv static ModuleFinder
private static Set<String>
createModuleList(List<Path> paths, Set<String> addModules, Set<String> limitModules)

pack-priv static List<Path>

Returns:

the path list that includes location of "java.base" module
ensureBaseModuleInModulePath
(List<Path>
the path list where to look up for "java.base" module
modulePath
)

Returns a list of paths that includes the location where the "java.base" module can be found.

private static boolean
private static Set<String>
private static String
getPathList(List<Path> pathList)

private static String
public boolean
withNativeCommands()

Overrides default jdk.jpackage.internal.model.RuntimeBuilder.withNativeCommands.

Returns true if "--strip-native-commands" was not used with jlink.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ALL_DEFAULTback to summary
private static final String ALL_DEFAULT
ALL_MODULE_PATHback to summary
private static final String ALL_MODULE_PATH
jlinkCmdLineback to summary
private final List<String> jlinkCmdLine

Constructor Detail

JLinkRuntimeBuilderback to summary
private JLinkRuntimeBuilder(List<String> jlinkCmdLine)

Method Detail

createback to summary
public void create(AppImageLayout appImageLayout)

Implements jdk.jpackage.internal.model.RuntimeBuilder.create.

Doc from jdk.jpackage.internal.model.RuntimeBuilder.create.

Creates Java runtime in the given app image.

Annotations
@Override
createJLinkCmdlineback to summary
private static List<String> createJLinkCmdline(List<Path> modulePath, Set<String> addModules, Set<String> limitModules, List<String> options, List<LauncherStartupInfo> startupInfos)
createJLinkRuntimeBuilderback to summary
pack-priv static RuntimeBuilder createJLinkRuntimeBuilder(List<Path> modulePath, Set<String> addModules, Set<String> limitModules, List<String> options, List<LauncherStartupInfo> startupInfos)
createModuleFinderback to summary
pack-priv static ModuleFinder createModuleFinder(Collection<Path> modulePath)
createModuleListback to summary
private static Set<String> createModuleList(List<Path> paths, Set<String> addModules, Set<String> limitModules)
ensureBaseModuleInModulePathback to summary
pack-priv static List<Path> ensureBaseModuleInModulePath(List<Path> modulePath)

Returns a list of paths that includes the location where the "java.base" module can be found.

Returns the specified path list if "java.base" module can be found in one of the paths from the specified path list.

Returns a new path list created from the specified path list with the path of "java.base" module in the current runtime appended otherwise.

Parameters
modulePath:List<Path>

the path list where to look up for "java.base" module

Returns:List<Path>

the path list that includes location of "java.base" module

exportsAPIback to summary
private static boolean exportsAPI(ModuleDescriptor descriptor)
getDefaultModulesback to summary
private static Set<String> getDefaultModules(Collection<Path> paths, Collection<String> addModules)
getPathListback to summary
private static String getPathList(List<Path> pathList)
getStringListback to summary
private static String getStringList(Set<String> strings)
withNativeCommandsback to summary
public boolean withNativeCommands()

Overrides default jdk.jpackage.internal.model.RuntimeBuilder.withNativeCommands.

Doc from jdk.jpackage.internal.model.RuntimeBuilder.withNativeCommands.

Returns true if "--strip-native-commands" was not used with jlink. Default implementation returns false.

Annotations
@Override
jdk.jpackage.internal back to summary

private Class JLinkRuntimeBuilder.LazyLoad

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

Constructor Detail

LazyLoadback to summary
private LazyLoad()