Package org.springframework.boot.loader
Class WarLauncher
- java.lang.Object
- org.springframework.boot.loader.Launcher
- org.springframework.boot.loader.ExecutableArchiveLauncher
- org.springframework.boot.loader.WarLauncher
public class WarLauncher extends ExecutableArchiveLauncher
Launcher
for WAR based archives. This launcher for standard WAR archives. Supports dependencies inWEB-INF/lib
as well asWEB-INF/lib-provided
, classes are loaded fromWEB-INF/classes
.
Constructor Summary
Constructors Modifier Constructor Description WarLauncher()
protected
WarLauncher(Archive archive)
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isNestedArchive(Archive.Entry entry)
Determine if the specifiedJarEntry
is a nested item that should be added to the classpath.static void
main(String[] args)
Methods inherited from class org.springframework.boot.loader.ExecutableArchiveLauncher
getArchive, getClassPathArchives, getMainClass, postProcessClassPathArchives
Methods inherited from class org.springframework.boot.loader.Launcher
createArchive, createClassLoader, createClassLoader, createMainMethodRunner, launch, launch
Constructor Detail
WarLauncher
public WarLauncher()
WarLauncher
protected WarLauncher(Archive archive)
Method Detail
isNestedArchive
public boolean isNestedArchive(Archive.Entry entry)
Description copied from class:ExecutableArchiveLauncher
Determine if the specifiedJarEntry
is a nested item that should be added to the classpath. The method is called once for each entry.- Specified by:
isNestedArchive
in classExecutableArchiveLauncher
- Parameters:
entry
- the jar entry- Returns:
true
if the entry is a nested item (jar or folder)