public class WarLauncher extends ExecutableArchiveLauncher
Launcher for WAR based archives. This launcher for standard WAR archives.
Supports dependencies in WEB-INF/lib as well as WEB-INF/lib-provided,
classes are loaded from WEB-INF/classes.| Constructor and Description |
|---|
WarLauncher() |
| Modifier and Type | Method and Description |
|---|---|
protected Archive |
getFilteredArchive()
Filter the specified WAR file to exclude elements that should not appear on the
classpath.
|
boolean |
isNestedArchive(Archive.Entry entry)
Determine if the specified
JarEntry is a nested item that should be added
to the classpath. |
static void |
main(String[] args) |
protected void |
postProcessClassPathArchives(List<Archive> archives)
Called to post-process archive entries before they are used.
|
getArchive, getClassPathArchives, getMainClasscreateArchive, createClassLoader, createClassLoader, createMainMethodRunner, launch, launchpublic boolean isNestedArchive(Archive.Entry entry)
ExecutableArchiveLauncherJarEntry is a nested item that should be added
to the classpath. The method is called once for each entry.isNestedArchive in class ExecutableArchiveLauncherentry - the jar entrytrue if the entry is a nested item (jar or folder)protected void postProcessClassPathArchives(List<Archive> archives) throws Exception
ExecutableArchiveLauncherpostProcessClassPathArchives in class ExecutableArchiveLauncherarchives - the archivesExceptionprotected Archive getFilteredArchive() throws IOException
IOException - on errorpublic static void main(String[] args)
Copyright © 2014 Pivotal Software, Inc.. All rights reserved.