Package org.springframework.boot.loader
Class JarLauncher
java.lang.Object
org.springframework.boot.loader.Launcher
org.springframework.boot.loader.ExecutableArchiveLauncher
org.springframework.boot.loader.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:
- 1.0.0
- Author:
- Phillip Webb, Andy Wilkinson, Madhura Bhave, 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.protected 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
-
JarLauncher
public JarLauncher() -
JarLauncher
-
-
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
-