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 StringReturn the path prefix for relevant entries in the archive.protected booleanDetermine if the specified entry is a nested item that should be added to the classpath.static voidMethods inherited from class org.springframework.boot.loader.launch.ExecutableArchiveLauncher
createClassLoader, getArchive, getClassPathUrls, getMainClass, isSearchedDirectoryMethods inherited from class org.springframework.boot.loader.launch.Launcher
isExploded, launch, launch
-
Constructor Details
-
Method Details
-
isIncludedOnClassPath
Description copied from class:ExecutableArchiveLauncherDetermine if the specified entry is a nested item that should be added to the classpath.- Specified by:
isIncludedOnClassPathin classExecutableArchiveLauncher- Parameters:
entry- the entry to check- Returns:
trueif the entry is a nested item (jar or directory)
-
getEntryPathPrefix
Description copied from class:ExecutableArchiveLauncherReturn the path prefix for relevant entries in the archive.- Specified by:
getEntryPathPrefixin classExecutableArchiveLauncher- Returns:
- the entry path prefix
-
main
- Throws:
Exception
-