类 ExecutableArchiveLauncher

java.lang.Object
org.springframework.boot.loader.launch.Launcher
org.springframework.boot.loader.launch.ExecutableArchiveLauncher
直接已知子类:
JarLauncher, WarLauncher

public abstract class ExecutableArchiveLauncher extends Launcher
Base class for a Launcher backed by an executable archive.
从以下版本开始:
3.2.0
作者:
Phillip Webb, Andy Wilkinson, Madhura Bhave, Scott Frederick
另请参阅:
  • 构造器详细资料

  • 方法详细资料

    • createClassLoader

      protected ClassLoader createClassLoader(Collection<URL> urls) throws Exception
      从类复制的说明: Launcher
      Create a classloader for the specified archives.
      覆盖:
      createClassLoader 在类中 Launcher
      参数:
      urls - the classpath URLs
      返回:
      the classloader
      抛出:
      Exception - if the classloader cannot be created
    • getArchive

      protected final Archive getArchive()
      从类复制的说明: Launcher
      Return the archive being launched or null if there is no archive.
      指定者:
      getArchive 在类中 Launcher
      返回:
      the launched archive
    • getMainClass

      protected String getMainClass() throws Exception
      从类复制的说明: 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

      protected Set<URL> getClassPathUrls() throws Exception
      从类复制的说明: 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

      protected boolean isSearchedDirectory(Archive.Entry entry)
      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