Class JarTest
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
test.de.iip_ecosphere.platform.services.spring.JarTest
public class JarTest
extends de.iip_ecosphere.platform.services.spring.loader.AppStarter.AccessibleJarLauncher
Simple program to test Spring-packaged jar files for contained classes.
- Author:
- Holger Eichelberger, SSE
-
Field Summary
Fields inherited from class org.springframework.boot.loader.ExecutableArchiveLauncher
BOOT_CLASSPATH_INDEX_ATTRIBUTE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJarTest(org.springframework.boot.loader.archive.Archive archive) Creates an instance of the test program. -
Method Summary
Methods inherited from class de.iip_ecosphere.platform.services.spring.loader.AppStarter.AccessibleJarLauncher
createClassLoaderMethods inherited from class org.springframework.boot.loader.JarLauncher
getClassPathIndex, isNestedArchive, isPostProcessingClassPathArchives, isSearchCandidateMethods 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
-
JarTest
protected JarTest(org.springframework.boot.loader.archive.Archive archive) Creates an instance of the test program.- Parameters:
archive- the JAR archive to load
-
-
Method Details
-
main
Executes the test program.- Parameters:
args- command line arguments, first is the filename of the Spring JAR archive to load, second is the class to search for- Throws:
Exception- any kind of exception if loading archive or class failed
-