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

pack-priv final Class ApplicationBuilder

extends Object
Class Inheritance
Static Imports
jdk.jpackage.internal.I18N.buildConfigException

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static record
pack-priv static record

Field Summary

Modifier and TypeField and Description
private Collection<RootedPath>
private AppImageLayout
private Collection<RootedPath>
private String
private static final ApplicationBuilder.Defaults
private UnaryOperator<String>
private String
private ExternalApplication
private ApplicationLaunchers
private String
private RuntimeBuilder
private Path
private String
private String

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv ApplicationBuilder
pack-priv ApplicationBuilder
pack-priv ApplicationBuilder
pack-priv ApplicationBuilder
copy()

pack-priv Application
private Optional<String>
pack-priv ApplicationBuilder
pack-priv ApplicationBuilder
pack-priv ApplicationBuilder
pack-priv Optional<ExternalApplication>
pack-priv boolean
pack-priv ApplicationBuilder
pack-priv Optional<ApplicationLaunchers>
pack-priv ApplicationBuilder
pack-priv static <T extends Launcher> ApplicationLaunchers
normalizeIcons(ApplicationLaunchers appLaunchers, Optional<Path> resourceDir, BiFunction<T, Launcher, T> launcherOverrideCtor)

pack-priv static <T, U extends Launcher> ApplicationLaunchers
normalizeLauncherProperty(ApplicationLaunchers appLaunchers, Predicate<U> needsNormalization, Function<U, Optional<T>> normalizedPropertyValueFinder, BiFunction<U, T, U> propertyOverrider)

pack-priv static <T, U extends Launcher> ApplicationLaunchers
normalizeLauncherProperty(ApplicationLaunchers appLaunchers, Predicate<U> needsNormalization, Function<U, Optional<T>> normalizedPropertyValueFinder, Function<U, T> normalizedPropertyValueGetter, BiFunction<U, T, U> propertyOverrider)

pack-priv static Application
private static Launcher
pack-priv static Launcher
pack-priv ApplicationBuilder
pack-priv ApplicationBuilder
private String
pack-priv ApplicationBuilder
pack-priv ApplicationBuilder
pack-priv Optional<String>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

appDirSourcesback to summary
private Collection<RootedPath> appDirSources
appImageLayoutback to summary
private AppImageLayout appImageLayout
contentDirSourcesback to summary
private Collection<RootedPath> contentDirSources
DEFAULTSback to summary
private static final ApplicationBuilder.Defaults DEFAULTS
derivedVersionNormalizerback to summary
private UnaryOperator<String> derivedVersionNormalizer
descriptionback to summary
private String description
externalAppback to summary
private ExternalApplication externalApp
launchersback to summary
private ApplicationLaunchers launchers
nameback to summary
private String name
runtimeBuilderback to summary
private RuntimeBuilder runtimeBuilder
runtimeReleaseFileback to summary
private Path runtimeReleaseFile
vendorback to summary
private String vendor
versionback to summary
private String version

Constructor Detail

ApplicationBuilderback to summary
pack-priv ApplicationBuilder()
ApplicationBuilderback to summary
pack-priv ApplicationBuilder(ApplicationBuilder other)

Method Detail

appDirSourcesback to summary
pack-priv ApplicationBuilder appDirSources(Collection<RootedPath> v)
appImageLayoutback to summary
pack-priv ApplicationBuilder appImageLayout(AppImageLayout v)
contentDirSourcesback to summary
pack-priv ApplicationBuilder contentDirSources(Collection<RootedPath> v)
copyback to summary
pack-priv ApplicationBuilder copy()
createback to summary
pack-priv Application create()
derivedVersionback to summary
private Optional<String> derivedVersion()
derivedVersionNormalizerback to summary
pack-priv ApplicationBuilder derivedVersionNormalizer(UnaryOperator<String> v)
descriptionback to summary
pack-priv ApplicationBuilder description(String v)
externalApplicationback to summary
pack-priv ApplicationBuilder externalApplication(ExternalApplication v)
externalApplicationback to summary
pack-priv Optional<ExternalApplication> externalApplication()
isRuntimeback to summary
pack-priv boolean isRuntime()
launchersback to summary
pack-priv ApplicationBuilder launchers(ApplicationLaunchers v)
launchersback to summary
pack-priv Optional<ApplicationLaunchers> launchers()
nameback to summary
pack-priv ApplicationBuilder name(String v)
normalizeIconsback to summary
pack-priv static <T extends Launcher> ApplicationLaunchers normalizeIcons(ApplicationLaunchers appLaunchers, Optional<Path> resourceDir, BiFunction<T, Launcher, T> launcherOverrideCtor)
normalizeLauncherPropertyback to summary
pack-priv static <T, U extends Launcher> ApplicationLaunchers normalizeLauncherProperty(ApplicationLaunchers appLaunchers, Predicate<U> needsNormalization, Function<U, Optional<T>> normalizedPropertyValueFinder, BiFunction<U, T, U> propertyOverrider)
normalizeLauncherPropertyback to summary
pack-priv static <T, U extends Launcher> ApplicationLaunchers normalizeLauncherProperty(ApplicationLaunchers appLaunchers, Predicate<U> needsNormalization, Function<U, Optional<T>> normalizedPropertyValueFinder, Function<U, T> normalizedPropertyValueGetter, BiFunction<U, T, U> propertyOverrider)
overrideAppImageLayoutback to summary
pack-priv static Application overrideAppImageLayout(Application app, AppImageLayout appImageLayout)
overrideIconback to summary
private static Launcher overrideIcon(Launcher launcher, LauncherIcon icon)
overrideLauncherStartupInfoback to summary
pack-priv static Launcher overrideLauncherStartupInfo(Launcher launcher, LauncherStartupInfo startupInfo)
runtimeBuilderback to summary
pack-priv ApplicationBuilder runtimeBuilder(RuntimeBuilder v)
runtimeReleaseFileback to summary
pack-priv ApplicationBuilder runtimeReleaseFile(Path v)
validatedVersionback to summary
private String validatedVersion()
vendorback to summary
pack-priv ApplicationBuilder vendor(String v)
versionback to summary
pack-priv ApplicationBuilder version(String v)
versionback to summary
pack-priv Optional<String> version()
jdk.jpackage.internal back to summary

private final Record ApplicationBuilder.Defaults

extends Record
Class Inheritance
Record Components
version:String 
vendor:String 

Field Summary

Modifier and TypeField and Description
private final String
vendor

Record Component accessed by vendor().

private final String
version

Record Component accessed by version().

Constructor Summary

AccessConstructor and Description
private
Defaults(String version, String vendor)

Method Summary

Modifier and TypeMethod and Description
pack-priv String
public final boolean
equals(Object o)

Implements abstract java.lang.Record.equals.

Indicates whether some other object is "equal to" this one.

public final int
hashCode()

Implements abstract java.lang.Record.hashCode.

Returns a hash code value for the record.

public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

public String
vendor()

Record Component getter of vendor.

public String
version()

Record Component getter of version.

Field Detail

vendorback to summary
private final String vendor

Record Component accessed by vendor().

versionback to summary
private final String version

Record Component accessed by version().

Constructor Detail

Defaultsback to summary
private Defaults(String version, String vendor)

Method Detail

copyrightback to summary
pack-priv String copyright()
equalsback to summary
public final boolean equals(Object o)

Implements abstract java.lang.Record.equals.

Doc from java.lang.Record.equals.

Indicates whether some other object is "equal to" this one. In addition to the general contract of Object.equals, record classes must further obey the invariant that when a record instance is "copied" by passing the result of the record component accessor methods to the canonical constructor, as follows:

    R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
hashCodeback to summary
public final int hashCode()

Implements abstract java.lang.Record.hashCode.

Doc from java.lang.Record.hashCode.

Returns a hash code value for the record. Obeys the general contract of Object.hashCode. For records, hashing behavior is constrained by the refined contract of Record.equals, so that any two records created from the same components must have the same hash code.

toStringback to summary
public final String toString()

Implements abstract java.lang.Record.toString.

Doc from java.lang.Record.toString.

Returns a string representation of the record. In accordance with the general contract of Object#toString(), the toString method returns a string that "textually represents" this record. The result should be a concise but informative representation that is easy for a person to read.

In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.

vendorback to summary
public String vendor()

Record Component getter of vendor.

versionback to summary
public String version()

Record Component getter of version.

jdk.jpackage.internal back to summary

pack-priv final Record ApplicationBuilder.MainLauncherStartupInfo

extends Record
implements LauncherStartupInfo
Class Inheritance
All Implemented Interfaces
jdk.jpackage.internal.model.LauncherStartupInfo
Record Components
qualifiedClassName:String 

Field Summary

Modifier and TypeField and Description
private final String
qualifiedClassName

Record Component accessed by qualifiedClassName().

Constructor Summary

AccessConstructor and Description
pack-priv
MainLauncherStartupInfo(String qualifiedClassName)

Method Summary

Modifier and TypeMethod and Description
public List<Path>
classPath()

Implements jdk.jpackage.internal.model.LauncherStartupInfo.classPath.

Gets the files and directories that should be put on a classpath for an application launcher this launcher startup configuration applies to.

public List<String>
defaultParameters()

Implements jdk.jpackage.internal.model.LauncherStartupInfo.defaultParameters.

Gets the default parameters for the main(String[] args) method of the main class of this launcher startup configuration.

public final boolean
equals(Object o)

Implements abstract java.lang.Record.equals.

Indicates whether some other object is "equal to" this one.

public final int
hashCode()

Implements abstract java.lang.Record.hashCode.

Returns a hash code value for the record.

public List<String>
javaOptions()

Implements jdk.jpackage.internal.model.LauncherStartupInfo.javaOptions.

Gets JVM options of this launcher startup configuration.

public String
qualifiedClassName()

Record Component getter of qualifiedClassName.

Implements jdk.jpackage.internal.model.LauncherStartupInfo.qualifiedClassName.

Gets the qualified name of the main class of this launcher startup configuration.

public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

Field Detail

qualifiedClassNameback to summary
private final String qualifiedClassName

Record Component accessed by qualifiedClassName().

Constructor Detail

MainLauncherStartupInfoback to summary
pack-priv MainLauncherStartupInfo(String qualifiedClassName)

Method Detail

classPathback to summary
public List<Path> classPath()

Implements jdk.jpackage.internal.model.LauncherStartupInfo.classPath.

Doc from jdk.jpackage.internal.model.LauncherStartupInfo.classPath.

Gets the files and directories that should be put on a classpath for an application launcher this launcher startup configuration applies to.

Annotations
@Override
defaultParametersback to summary
public List<String> defaultParameters()

Implements jdk.jpackage.internal.model.LauncherStartupInfo.defaultParameters.

Doc from jdk.jpackage.internal.model.LauncherStartupInfo.defaultParameters.

Gets the default parameters for the main(String[] args) method of the main class of this launcher startup configuration.

Annotations
@Override
equalsback to summary
public final boolean equals(Object o)

Implements abstract java.lang.Record.equals.

Doc from java.lang.Record.equals.

Indicates whether some other object is "equal to" this one. In addition to the general contract of Object.equals, record classes must further obey the invariant that when a record instance is "copied" by passing the result of the record component accessor methods to the canonical constructor, as follows:

    R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
hashCodeback to summary
public final int hashCode()

Implements abstract java.lang.Record.hashCode.

Doc from java.lang.Record.hashCode.

Returns a hash code value for the record. Obeys the general contract of Object.hashCode. For records, hashing behavior is constrained by the refined contract of Record.equals, so that any two records created from the same components must have the same hash code.

javaOptionsback to summary
public List<String> javaOptions()

Implements jdk.jpackage.internal.model.LauncherStartupInfo.javaOptions.

Doc from jdk.jpackage.internal.model.LauncherStartupInfo.javaOptions.

Gets JVM options of this launcher startup configuration.

Annotations
@Override
qualifiedClassNameback to summary
public String qualifiedClassName()

Record Component getter of qualifiedClassName.

Implements jdk.jpackage.internal.model.LauncherStartupInfo.qualifiedClassName.

Doc from jdk.jpackage.internal.model.LauncherStartupInfo.qualifiedClassName.

Gets the qualified name of the main class of this launcher startup configuration.

toStringback to summary
public final String toString()

Implements abstract java.lang.Record.toString.

Doc from java.lang.Record.toString.

Returns a string representation of the record. In accordance with the general contract of Object#toString(), the toString method returns a string that "textually represents" this record. The result should be a concise but informative representation that is easy for a person to read.

In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.