类 ExecutableArchiveLauncher
java.lang.Object
org.springframework.boot.loader.launch.Launcher
org.springframework.boot.loader.launch.ExecutableArchiveLauncher
- 直接已知子类:
JarLauncher
,WarLauncher
Base class for a
Launcher
backed by an executable archive.- 从以下版本开始:
- 3.2.0
- 作者:
- Phillip Webb, Andy Wilkinson, Madhura Bhave, Scott Frederick
- 另请参阅:
-
字段概要
从类继承的字段 org.springframework.boot.loader.launch.Launcher
BOOT_CLASSPATH_INDEX_ATTRIBUTE, classPathIndex, DEFAULT_CLASSPATH_INDEX_FILE_NAME
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected ClassLoader
createClassLoader
(Collection<URL> urls) Create a classloader for the specified archives.protected final Archive
Return the archive being launched ornull
if there is no archive.Returns the archives that will be used to construct the class path.protected String
Returns the main class that should be launched.protected boolean
isSearchedDirectory
(Archive.Entry entry) Determine if the specified directory entry is a candidate for further searching.从类继承的方法 org.springframework.boot.loader.launch.Launcher
getEntryPathPrefix, isExploded, isIncludedOnClassPath, isIncludedOnClassPathAndNotIndexed, isLibraryFileOrClassesDirectory, launch, launch
-
构造器详细资料
-
方法详细资料
-
createClassLoader
从类复制的说明:Launcher
Create a classloader for the specified archives.- 覆盖:
createClassLoader
在类中Launcher
- 参数:
urls
- the classpath URLs- 返回:
- the classloader
- 抛出:
Exception
- if the classloader cannot be created
-
getArchive
从类复制的说明:Launcher
Return the archive being launched ornull
if there is no archive.- 指定者:
getArchive
在类中Launcher
- 返回:
- the launched archive
-
getMainClass
从类复制的说明:Launcher
Returns the main class that should be launched.- 指定者:
getMainClass
在类中Launcher
- 返回:
- the name of the main class
- 抛出:
Exception
- if the main class cannot be obtained
-
getClassPathUrls
从类复制的说明:Launcher
Returns the archives that will be used to construct the class path.- 指定者:
getClassPathUrls
在类中Launcher
- 返回:
- the class path archives
- 抛出:
Exception
- if the class path archives cannot be obtained
-
isSearchedDirectory
Determine if the specified directory entry is a candidate for further searching.- 参数:
entry
- the entry to check- 返回:
true
if the entry is a candidate for further searching
-