JarLauncher, WarLauncherpublic abstract class ExecutableArchiveLauncher extends Launcher
Launchers.| Modifier | Constructor | Description |
|---|---|---|
|
ExecutableArchiveLauncher() |
|
protected |
ExecutableArchiveLauncher(Archive archive) |
|
|
ExecutableArchiveLauncher(JavaAgentDetector javaAgentDetector) |
| Modifier and Type | Method | Description |
|---|---|---|
protected java.lang.ClassLoader |
createClassLoader(java.net.URL[] urls) |
Create a classloader for the specified URLs.
|
protected Archive |
getArchive() |
|
protected java.util.List<Archive> |
getClassPathArchives() |
Returns the archives that will be used to construct the class path.
|
protected java.lang.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(java.util.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 java.lang.String getMainClass()
throws java.lang.Exception
LaunchergetMainClass in class Launcherjava.lang.Exception - if the main class cannot be obtainedprotected java.util.List<Archive> getClassPathArchives() throws java.lang.Exception
LaunchergetClassPathArchives in class Launcherjava.lang.Exception - if the class path archives cannot be obtainedprotected java.lang.ClassLoader createClassLoader(java.net.URL[] urls)
throws java.lang.Exception
LaunchercreateClassLoader in class Launcherurls - the URLsjava.lang.Exception - 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)protected void postProcessClassPathArchives(java.util.List<Archive> archives) throws java.lang.Exception
archives - the archivesjava.lang.Exception - if the post processing failsCopyright © 2018. All rights reserved.