public abstract class ExecutableArchiveLauncher extends Launcher
Launchers.| 限定符 | 构造器和说明 |
|---|---|
|
ExecutableArchiveLauncher() |
protected |
ExecutableArchiveLauncher(Archive archive) |
|
ExecutableArchiveLauncher(JavaAgentDetector javaAgentDetector) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected ClassLoader |
createClassLoader(URL[] urls)
Create a classloader for the specified URLs.
|
protected Archive |
getArchive() |
protected List<Archive> |
getClassPathArchives()
Returns the archives that will be used to construct the class path.
|
protected String |
getMainClass()
Returns the main class that should be launched.
|
protected abstract boolean |
isNestedArchive(Archive.Entry entry)
Determine if the specified
JarEntry is a nested item that should be added
to the classpath. |
protected void |
postProcessClassPathArchives(List<Archive> archives)
Called to post-process archive entries before they are used.
|
createArchive, createClassLoader, createMainMethodRunner, launch, launchpublic ExecutableArchiveLauncher()
public ExecutableArchiveLauncher(JavaAgentDetector javaAgentDetector)
protected ExecutableArchiveLauncher(Archive archive)
protected final Archive getArchive()
protected String getMainClass() throws Exception
LaunchergetMainClass 在类中 LauncherException - if the main class cannot be obtainedprotected List<Archive> getClassPathArchives() throws Exception
LaunchergetClassPathArchives 在类中 LauncherException - if the class path archives cannot be obtainedprotected ClassLoader createClassLoader(URL[] urls) throws Exception
LaunchercreateClassLoader 在类中 Launcherurls - the URLsException - if the classloader cannot be createdprotected abstract boolean isNestedArchive(Archive.Entry entry)
JarEntry is a nested item that should be added
to the classpath. The method is called once for each entry.entry - the jar entrytrue if the entry is a nested item (jar or folder)Copyright © 2023. All rights reserved.