Class WarLauncher
java.lang.Object
org.springframework.boot.loader.launch.Launcher
org.springframework.boot.loader.launch.ExecutableArchiveLauncher
org.springframework.boot.loader.launch.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:
- 3.2.0
-
Field Summary
Fields inherited from class org.springframework.boot.loader.launch.ExecutableArchiveLauncher
BOOT_CLASSPATH_INDEX_ATTRIBUTE, DEFAULT_CLASSPATH_INDEX_FILE_NAME
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
Return the path prefix for relevant entries in the archive.boolean
Determine if the specified entry is a nested item that should be added to the classpath.static void
Methods inherited from class org.springframework.boot.loader.launch.ExecutableArchiveLauncher
createClassLoader, getArchive, getClassPathUrls, getMainClass, isSearchedDirectory
Methods inherited from class org.springframework.boot.loader.launch.Launcher
isExploded, launch, launch
-
Constructor Details
-
Method Details
-
isIncludedOnClassPath
Description copied from class:ExecutableArchiveLauncher
Determine if the specified entry is a nested item that should be added to the classpath.- Specified by:
isIncludedOnClassPath
in classExecutableArchiveLauncher
- Parameters:
entry
- the entry to check- Returns:
true
if the entry is a nested item (jar or directory)
-
getEntryPathPrefix
Description copied from class:ExecutableArchiveLauncher
Return the path prefix for relevant entries in the archive.- Specified by:
getEntryPathPrefix
in classExecutableArchiveLauncher
- Returns:
- the entry path prefix
-
main
- Throws:
Exception
-