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