Class JarLauncher
java.lang.Object
org.springframework.boot.loader.launch.Launcher
org.springframework.boot.loader.launch.ExecutableArchiveLauncher
org.springframework.boot.loader.launch.JarLauncher
Launcher
for JAR based archives. This launcher assumes that dependency jars are
included inside a /BOOT-INF/lib
directory and that application classes are
included inside a /BOOT-INF/classes
directory.- 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.protected 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
-