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.
|
createClassLoader, getArchive, getClassPathArchives, getMainClass
createArchive, createClassLoader, createMainMethodRunner, launch, launch
public boolean isNestedArchive(Archive.Entry entry)
ExecutableArchiveLauncher
JarEntry
is a nested item that should be added
to the classpath. The method is called once for each entry.isNestedArchive
in class ExecutableArchiveLauncher
entry
- the jar entrytrue
if the entry is a nested item (jar or folder)protected void postProcessClassPathArchives(List<Archive> archives) throws Exception
ExecutableArchiveLauncher
postProcessClassPathArchives
in class ExecutableArchiveLauncher
archives
- the archivesException
protected Archive getFilteredArchive() throws IOException
IOException
- on errorpublic static void main(String[] args)
Copyright © 2015 Pivotal Software, Inc.. All rights reserved.