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
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.
Constructor Summary
Constructors Modifier Constructor Description JarLauncher()
protected
JarLauncher(Archive archive)
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
isNestedArchive(Archive.Entry entry)
Determine if the specifiedJarEntry
is a nested item that should be added to the classpath.static void
main(String[] args)
Methods inherited from class org.springframework.boot.loader.ExecutableArchiveLauncher
getArchive, getClassPathArchives, getMainClass, postProcessClassPathArchives
Methods inherited from class org.springframework.boot.loader.Launcher
createArchive, createClassLoader, createClassLoader, createMainMethodRunner, launch, launch
Constructor Detail
JarLauncher
public JarLauncher()
JarLauncher
protected JarLauncher(Archive archive)
Method Detail
isNestedArchive
protected boolean isNestedArchive(Archive.Entry entry)
Description copied from class:ExecutableArchiveLauncher
Determine if the specifiedJarEntry
is a nested item that should be added to the classpath. The method is called once for each entry.- Specified by:
isNestedArchive
in classExecutableArchiveLauncher
- Parameters:
entry
- the jar entry- Returns:
true
if the entry is a nested item (jar or folder)