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

public Interface LauncherStartupInfo

Known Direct Subinterfaces
jdk.jpackage.internal.model.LauncherJarStartupInfo, jdk.jpackage.internal.model.LauncherModularStartupInfo
Known Direct Implementers
jdk.jpackage.internal.model.LauncherStartupInfo.Stub, jdk.jpackage.internal.ApplicationBuilder.MainLauncherStartupInfo
Imports
java.lang.constant.ClassDesc, java.nio.file.Path, java.util.List

Generic startup configuration of an application launcher.
See Also
Launcher#startupInfo()

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static record
LauncherStartupInfo.Stub

Default implementation of LauncherStartupInfo interface.

Method Summary

Modifier and TypeMethod and Description
public List<Path>

Returns:

the classpath of this launcher startup configuration
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>

Returns:

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

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

public List<String>

Returns:

the JVM options of this launcher startup configuration
javaOptions
()

Gets JVM options of this launcher startup configuration.

public default String

Returns:

the package name of the main class of this launcher startup configuration
packageName
()

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

public String

Returns:

the qualified name of the main class of this launcher startup configuration
qualifiedClassName
()

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

public default String

Returns:

the simple name of the main class of this launcher startup configuration as given in the source code
simpleClassName
()

Returns the simple name of the main class of this launcher startup configuration as given in the source code.

Method Detail

classPathback to summary
public List<Path> classPath()

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

Returns:List<Path>

the classpath of this launcher startup configuration

defaultParametersback to summary
public List<String> defaultParameters()

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

Returns:List<String>

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

javaOptionsback to summary
public List<String> javaOptions()

Gets JVM options of this launcher startup configuration.

Returns:List<String>

the JVM options of this launcher startup configuration

packageNameback to summary
public default String packageName()

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

Returns:String

the package name of the main class of this launcher startup configuration

qualifiedClassNameback to summary
public String qualifiedClassName()

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

Returns:String

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

simpleClassNameback to summary
public default String simpleClassName()

Returns the simple name of the main class of this launcher startup configuration as given in the source code.

Returns:String

the simple name of the main class of this launcher startup configuration as given in the source code

jdk.jpackage.internal.model back to summary

public final Record LauncherStartupInfo.Stub

extends Record
implements LauncherStartupInfo
Class Inheritance
All Implemented Interfaces
jdk.jpackage.internal.model.LauncherStartupInfo
Record Components
qualifiedClassName:String 
javaOptions:List<String> 
defaultParameters:List<String> 
classPath:List<Path> 

Default implementation of LauncherStartupInfo interface.

Field Summary

Modifier and TypeField and Description
private final List<Path>
classPath

Record Component accessed by classPath().

private final List<String>
defaultParameters

Record Component accessed by defaultParameters().

private final List<String>
javaOptions

Record Component accessed by javaOptions().

private final String
qualifiedClassName

Record Component accessed by qualifiedClassName().

Constructor Summary

AccessConstructor and Description
public
Stub(String qualifiedClassName, List<String> javaOptions, List<String> defaultParameters, List<Path> classPath)

Method Summary

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

Record Component getter of 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()

Record Component getter of 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()

Record Component getter of 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

classPathback to summary
private final List<Path> classPath

Record Component accessed by classPath().

defaultParametersback to summary
private final List<String> defaultParameters

Record Component accessed by defaultParameters().

javaOptionsback to summary
private final List<String> javaOptions

Record Component accessed by javaOptions().

qualifiedClassNameback to summary
private final String qualifiedClassName

Record Component accessed by qualifiedClassName().

Constructor Detail

Stubback to summary
public Stub(String qualifiedClassName, List<String> javaOptions, List<String> defaultParameters, List<Path> classPath)

Method Detail

classPathback to summary
public List<Path> classPath()

Record Component getter of 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.

defaultParametersback to summary
public List<String> defaultParameters()

Record Component getter of 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.

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()

Record Component getter of javaOptions.

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

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

Gets JVM options of this launcher startup configuration.

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.