类 ExecutableArchiveLauncher
- java.lang.Object
 - org.springframework.boot.loader.Launcher
 - org.springframework.boot.loader.ExecutableArchiveLauncher
 
- 直接已知子类:
 JarLauncher,WarLauncher
public abstract class ExecutableArchiveLauncher extends Launcher
Base class for executable archiveLaunchers.
构造器概要
构造器 限定符 构造器 说明 ExecutableArchiveLauncher()protectedExecutableArchiveLauncher(Archive archive)
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 protected ArchivegetArchive()protected List<Archive>getClassPathArchives()Returns the archives that will be used to construct the class path.protected StringgetMainClass()Returns the main class that should be launched.protected abstract booleanisNestedArchive(Archive.Entry entry)Determine if the specifiedJarEntryis a nested item that should be added to the classpath.protected voidpostProcessClassPathArchives(List<Archive> archives)Called to post-process archive entries before they are used.从类继承的方法 org.springframework.boot.loader.Launcher
createArchive, createClassLoader, createClassLoader, createMainMethodRunner, launch, launch
构造器详细资料
ExecutableArchiveLauncher
public ExecutableArchiveLauncher()
ExecutableArchiveLauncher
protected ExecutableArchiveLauncher(Archive archive)
方法详细资料
getArchive
protected final Archive getArchive()
getMainClass
protected String getMainClass() throws Exception
从类复制的说明:LauncherReturns the main class that should be launched.- 指定者:
 getMainClass在类中Launcher- 返回:
 - the name of the main class
 - 抛出:
 Exception- if the main class cannot be obtained
getClassPathArchives
protected List<Archive> getClassPathArchives() throws Exception
从类复制的说明:LauncherReturns the archives that will be used to construct the class path.- 指定者:
 getClassPathArchives在类中Launcher- 返回:
 - the class path archives
 - 抛出:
 Exception- if the class path archives cannot be obtained
isNestedArchive
protected abstract boolean isNestedArchive(Archive.Entry entry)
Determine if the specifiedJarEntryis a nested item that should be added to the classpath. The method is called once for each entry.- 参数:
 entry- the jar entry- 返回:
 trueif the entry is a nested item (jar or folder)
postProcessClassPathArchives
protected void postProcessClassPathArchives(List<Archive> archives) throws Exception
Called to post-process archive entries before they are used. Implementations can add and remove entries.- 参数:
 archives- the archives- 抛出:
 Exception- if the post processing fails