public class JarLauncher extends ExecutableArchiveLauncher
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.BOOT_CLASSPATH_INDEX_ATTRIBUTE| Modifier | Constructor and Description |
|---|---|
|
JarLauncher() |
protected |
JarLauncher(Archive archive) |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.boot.loader.ClassPathIndexFile |
getClassPathIndex(Archive 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 |
isPostProcessingClassPathArchives()
Return if post processing needs to be applied to the archives.
|
protected boolean |
isSearchCandidate(Archive.Entry entry)
Determine if the specified entry is a candidate for further searching.
|
static void |
main(String[] args) |
createClassLoader, getArchive, getClassPathArchivesIterator, getMainClass, isExploded, postProcessClassPathArchivescreateArchive, createClassLoader, createClassLoader, createMainMethodRunner, getClassPathArchives, launch, launchpublic JarLauncher()
protected JarLauncher(Archive archive)
protected org.springframework.boot.loader.ClassPathIndexFile getClassPathIndex(Archive archive) throws IOException
getClassPathIndex in class ExecutableArchiveLauncherIOExceptionprotected boolean isPostProcessingClassPathArchives()
ExecutableArchiveLaunchertrue, but subclasses that don't override
ExecutableArchiveLauncher.postProcessClassPathArchives(List) should provide an implementation that
returns false.isPostProcessingClassPathArchives in class ExecutableArchiveLauncherExecutableArchiveLauncher.postProcessClassPathArchives(List) method is implementedprotected boolean isSearchCandidate(Archive.Entry entry)
ExecutableArchiveLauncherisSearchCandidate in class ExecutableArchiveLauncherentry - the entry to checktrue if the entry is a candidate for further searchingprotected boolean isNestedArchive(Archive.Entry entry)
ExecutableArchiveLauncherisNestedArchive in class ExecutableArchiveLauncherentry - the entry to checktrue if the entry is a nested item (jar or directory)