Class AppStarter.AccessibleJarLauncher

java.lang.Object
org.springframework.boot.loader.Launcher
org.springframework.boot.loader.ExecutableArchiveLauncher
org.springframework.boot.loader.JarLauncher
de.iip_ecosphere.platform.services.spring.loader.AppStarter.AccessibleJarLauncher
Enclosing class:
AppStarter

public static class AppStarter.AccessibleJarLauncher extends org.springframework.boot.loader.JarLauncher
An accessible Jar Launcher if we need an (usual) root classloader.
Author:
Holger Eichelberger, SSE return launcher.createClassLoader(); }
  • 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

    Modifier and Type
    Method
    Description
    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 Details

    • 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 Details

    • createClassLoader

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