Class DescriptorUtils.AccessibleJarLauncher

  • Enclosing class:
    DescriptorUtils

    public static class DescriptorUtils.AccessibleJarLauncher
    extends org.springframework.boot.loader.JarLauncher
    • Field Summary

      • Fields inherited from class org.springframework.boot.loader.ExecutableArchiveLauncher

        BOOT_CLASSPATH_INDEX_ATTRIBUTE
    • Constructor Summary

      Constructors 
      Constructor Description
      AccessibleJarLauncher​(org.springframework.boot.loader.archive.Archive archive)
      Creates an instance of the test program.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.ClassLoader createClassLoader()
      Creates a Spring class loader via the JarLauncher setup for the archive passed in to this class.
      • Methods inherited from class org.springframework.boot.loader.JarLauncher

        getClassPathIndex, isNestedArchive, isPostProcessingClassPathArchives, isSearchCandidate, main
      • Methods inherited from class org.springframework.boot.loader.ExecutableArchiveLauncher

        createClassLoader, getArchive, getClassPathArchivesIterator, getMainClass, isExploded, postProcessClassPathArchives
      • Methods inherited from class org.springframework.boot.loader.Launcher

        createArchive, createClassLoader, createClassLoader, createMainMethodRunner, getClassPathArchives, launch, launch
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AccessibleJarLauncher

        public AccessibleJarLauncher​(org.springframework.boot.loader.archive.Archive archive)
        Creates an instance of the test program.
        Parameters:
        archive - the JAR archive to load
    • Method Detail

      • createClassLoader

        public java.lang.ClassLoader createClassLoader()
                                                throws java.lang.Exception
        Creates a Spring class loader via the JarLauncher setup for the archive passed in to this class.
        Returns:
        the classloader
        Throws:
        java.lang.Exception - any kind of exception if loading the archive or constructing a class loader failed