Class ExecutableArchiveLauncher
java.lang.Object
org.springframework.boot.loader.launch.Launcher
org.springframework.boot.loader.launch.ExecutableArchiveLauncher
- Direct Known Subclasses:
JarLauncher,WarLauncher
-
Field Summary
Fields inherited from class org.springframework.boot.loader.launch.Launcher
BOOT_CLASSPATH_INDEX_ATTRIBUTE, classPathIndex, DEFAULT_CLASSPATH_INDEX_FILE_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ClassLoadercreateClassLoader(Collection<URL> urls) Create a classloader for the specified archives.protected final ArchiveReturn the archive being launched ornullif there is no archive.Returns the archives that will be used to construct the class path.protected StringReturns the main class that should be launched.protected booleanisSearchedDirectory(Archive.Entry entry) Determine if the specified directory entry is a candidate for further searching.Methods inherited from class org.springframework.boot.loader.launch.Launcher
getEntryPathPrefix, isExploded, isIncludedOnClassPath, isIncludedOnClassPathAndNotIndexed, isLibraryFileOrClassesDirectory, launch, launch
-
Constructor Details
-
ExecutableArchiveLauncher
-
ExecutableArchiveLauncher
-
-
Method Details
-
createClassLoader
Description copied from class:LauncherCreate a classloader for the specified archives.- Overrides:
createClassLoaderin classLauncher- Parameters:
urls- the classpath URLs- Returns:
- the classloader
- Throws:
Exception- if the classloader cannot be created
-
getArchive
Description copied from class:LauncherReturn the archive being launched ornullif there is no archive.- Specified by:
getArchivein classLauncher- Returns:
- the launched archive
-
getMainClass
-
getClassPathUrls
Description copied from class:LauncherReturns the archives that will be used to construct the class path.- Specified by:
getClassPathUrlsin classLauncher- Returns:
- the class path archives
- Throws:
Exception- if the class path archives cannot be obtained
-
isSearchedDirectory
Determine if the specified directory entry is a candidate for further searching.- Parameters:
entry- the entry to check- Returns:
trueif the entry is a candidate for further searching
-