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
ConstructorsConstructorDescriptionAccessibleJarLauncher(org.springframework.boot.loader.archive.Archive archive) Creates an instance of the test program. -
Method Summary
Modifier and TypeMethodDescriptionCreates 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, mainMethods inherited from class org.springframework.boot.loader.ExecutableArchiveLauncher
createClassLoader, getArchive, getClassPathArchivesIterator, getMainClass, isExploded, postProcessClassPathArchivesMethods inherited from class org.springframework.boot.loader.Launcher
createArchive, createClassLoader, createClassLoader, createMainMethodRunner, getClassPathArchives, launch, launch
-
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
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
-