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

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

    Modifier and Type
    Method
    Description
    static void
    main(String[] args)
    Executes the test program.

    Methods inherited from class de.iip_ecosphere.platform.services.spring.loader.AppStarter.AccessibleJarLauncher

    createClassLoader

    Methods inherited from class org.springframework.boot.loader.JarLauncher

    getClassPathIndex, isNestedArchive, isPostProcessingClassPathArchives, isSearchCandidate

    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

    • 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

      public static void main(String[] args) throws Exception
      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