org.springframework.boot.loader
Class JarLauncher

java.lang.Object
  extended by org.springframework.boot.loader.Launcher
      extended by org.springframework.boot.loader.JarLauncher

public class JarLauncher
extends Launcher

Launcher for JAR based archives. This launcher assumes that dependency jars are included inside a /lib directory.

Author:
Phillip Webb

Constructor Summary
JarLauncher()
           
 
Method Summary
protected  boolean isNestedArchive(Archive.Entry entry)
          Determine if the specified JarEntry is a nested item that should be added to the classpath.
static void main(String[] args)
           
protected  void postProcessLib(Archive archive, List<Archive> lib)
          Called to post-process lib entries before they are used.
 
Methods inherited from class org.springframework.boot.loader.Launcher
createClassLoader, createClassLoader, createMainMethodRunner, getMainClass, launch, launch, launch, launch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JarLauncher

public JarLauncher()
Method Detail

isNestedArchive

protected boolean isNestedArchive(Archive.Entry entry)
Description copied from class: Launcher
Determine if the specified JarEntry is a nested item that should be added to the classpath. The method is called once for each entry.

Specified by:
isNestedArchive in class Launcher
Parameters:
entry - the jar entry
Returns:
true if the entry is a nested item (jar or folder)

postProcessLib

protected void postProcessLib(Archive archive,
                              List<Archive> lib)
                       throws Exception
Description copied from class: Launcher
Called to post-process lib entries before they are used. Implementations can add and remove entries.

Overrides:
postProcessLib in class Launcher
Parameters:
archive - the archive
lib - the existing lib
Throws:
Exception

main

public static void main(String[] args)


Copyright © 2013. All Rights Reserved.