org.springframework.boot.loader
Class WarLauncher
java.lang.Object
org.springframework.boot.loader.Launcher
org.springframework.boot.loader.WarLauncher
public class WarLauncher
- extends Launcher
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.
- Author:
- Phillip Webb
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WarLauncher
public WarLauncher()
isNestedArchive
protected boolean isNestedArchive(Archive.Entry entry)
- Description copied from class:
Launcher
- Determine if the specified
JarEntry is a nested item that should be added
to the classpath. The method is called once for each entry.
- Specified by:
isNestedArchive in class Launcher
- Parameters:
entry - the jar entry
- Returns:
true if the entry is a nested item (jar or folder)
postProcessLib
protected void postProcessLib(Archive archive,
List<Archive> lib)
throws Exception
- Description copied from class:
Launcher
- Called to post-process lib entries before they are used. Implementations can add
and remove entries.
- Overrides:
postProcessLib in class Launcher
- Parameters:
archive - the archivelib - the existing lib
- Throws:
Exception
filterArchive
protected Archive filterArchive(Archive archive)
throws IOException
- Filter the specified WAR file to exclude elements that should not appear on the
classpath.
- Parameters:
archive - the source archive
- Returns:
- the filtered archive
- Throws:
IOException - on error
main
public static void main(String[] args)
Copyright © 2013. All Rights Reserved.