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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringReturn the path prefix for entries in the archive.booleanisNestedArchive(Archive.Entry entry) Determine if the specified entry is a nested item that should be added to the classpath.protected booleanReturn if post processing needs to be applied to the archives.static voidMethods inherited from class org.springframework.boot.loader.ExecutableArchiveLauncher
createClassLoader, getArchive, getClassPathArchivesIterator, getClassPathIndex, getMainClass, isExploded, isSearchCandidate, postProcessClassPathArchivesMethods 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:ExecutableArchiveLauncherReturn 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:
isPostProcessingClassPathArchivesin classExecutableArchiveLauncher- Returns:
- if the
ExecutableArchiveLauncher.postProcessClassPathArchives(List)method is implemented
-
isNestedArchive
Description copied from class:ExecutableArchiveLauncherDetermine if the specified entry is a nested item that should be added to the classpath.- Specified by:
isNestedArchivein classExecutableArchiveLauncher- Parameters:
entry- the entry to check- Returns:
trueif the entry is a nested item (jar or directory)
-
getArchiveEntryPathPrefix
Description copied from class:ExecutableArchiveLauncherReturn the path prefix for entries in the archive.- Overrides:
getArchiveEntryPathPrefixin classExecutableArchiveLauncher- Returns:
- the path prefix
-
main
- Throws:
Exception
-