org.springframework.boot.loader
Class WarLauncher

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

public class WarLauncher
extends Launcher

Launcher for WAR based archives. This launcher for standard WAR archives. Supports dependencies in WEB-INF/lib as well as WEB-INF/lib-provided, classes are loaded from WEB-INF/classes.

Author:
Phillip Webb

Constructor Summary
WarLauncher()
           
 
Method Summary
protected  Archive filterArchive(Archive archive)
          Filter the specified WAR file to exclude elements that should not appear on the classpath.
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

WarLauncher

public WarLauncher()
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

filterArchive

protected Archive filterArchive(Archive archive)
                         throws IOException
Filter the specified WAR file to exclude elements that should not appear on the classpath.

Parameters:
archive - the source archive
Returns:
the filtered archive
Throws:
IOException - on error

main

public static void main(String[] args)


Copyright © 2013. All Rights Reserved.