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
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
.- Since:
- 1.0.0
- Author:
- Phillip Webb, Andy Wilkinson, Scott Frederick
-
Field Summary
Fields inherited from class org.springframework.boot.loader.ExecutableArchiveLauncher
BOOT_CLASSPATH_INDEX_ATTRIBUTE, DEFAULT_CLASSPATH_INDEX_FILE_NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
Return the path prefix for entries in the archive.boolean
isNestedArchive
(Archive.Entry entry) Determine if the specified entry is a nested item that should be added to the classpath.protected boolean
Return if post-processing needs to be applied to the archives.static void
Methods inherited from class org.springframework.boot.loader.ExecutableArchiveLauncher
createClassLoader, getArchive, getClassPathArchivesIterator, getClassPathIndex, getMainClass, isExploded, isSearchCandidate, postProcessClassPathArchives
Methods inherited from class org.springframework.boot.loader.Launcher
createArchive, createClassLoader, createMainMethodRunner, launch, launch
-
Constructor Details
-
WarLauncher
public WarLauncher() -
WarLauncher
-
-
Method Details
-
isPostProcessingClassPathArchives
protected boolean isPostProcessingClassPathArchives()Description copied from class:ExecutableArchiveLauncher
Return if post-processing needs to be applied to the archives. For back compatibility this method returnstrue
, but subclasses that don't overrideExecutableArchiveLauncher.postProcessClassPathArchives(List)
should provide an implementation that returnsfalse
.- Overrides:
isPostProcessingClassPathArchives
in classExecutableArchiveLauncher
- Returns:
- if the
ExecutableArchiveLauncher.postProcessClassPathArchives(List)
method is implemented
-
isNestedArchive
Description copied from class:ExecutableArchiveLauncher
Determine if the specified entry is a nested item that should be added to the classpath.- Specified by:
isNestedArchive
in classExecutableArchiveLauncher
- Parameters:
entry
- the entry to check- Returns:
true
if the entry is a nested item (jar or directory)
-
getArchiveEntryPathPrefix
Description copied from class:ExecutableArchiveLauncher
Return the path prefix for entries in the archive.- Overrides:
getArchiveEntryPathPrefix
in classExecutableArchiveLauncher
- Returns:
- the path prefix
-
main
- Throws:
Exception
-