Class JarTest


  • public class JarTest
    extends de.iip_ecosphere.platform.services.spring.DescriptorUtils.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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)
      Executes the test program.
      • Methods inherited from class de.iip_ecosphere.platform.services.spring.DescriptorUtils.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 Detail

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

      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.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:
        java.lang.Exception - any kind of exception if loading archive or class failed