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
Launcherfor JAR based archives. This launcher assumes that dependency jars are included inside a/BOOT-INF/libdirectory and that application classes are included inside a/BOOT-INF/classesdirectory.
Constructor Summary
Constructors Modifier Constructor Description JarLauncher()protectedJarLauncher(Archive archive)
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanisNestedArchive(Archive.Entry entry)Determine if the specifiedJarEntryis a nested item that should be added to the classpath.static voidmain(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:ExecutableArchiveLauncherDetermine if the specifiedJarEntryis a nested item that should be added to the classpath. The method is called once for each entry.- Specified by:
isNestedArchivein classExecutableArchiveLauncher- Parameters:
entry- the jar entry- Returns:
trueif the entry is a nested item (jar or folder)