public class MultiArchiveLauncher
extends org.springframework.boot.loader.Launcher
Launcher
for multiple independent JAR archives (which aren't nested in an uber jar). This class
supports adding includes and excludes to a module's classpath.Constructor and Description |
---|
MultiArchiveLauncher(List<org.springframework.boot.loader.archive.Archive> archives)
A list of archives, the first of which is expected to be a Spring boot uberJar
|
Modifier and Type | Method and Description |
---|---|
protected ClassLoader |
createClassLoader(URL[] urls) |
protected List<org.springframework.boot.loader.archive.Archive> |
getClassPathArchives() |
protected String |
getMainClass() |
void |
launch(String[] args) |
protected void |
launch(String[] args,
String mainClass,
ClassLoader classLoader) |
public MultiArchiveLauncher(List<org.springframework.boot.loader.archive.Archive> archives)
archives
- protected String getMainClass() throws Exception
getMainClass
in class org.springframework.boot.loader.Launcher
Exception
protected List<org.springframework.boot.loader.archive.Archive> getClassPathArchives() throws Exception
getClassPathArchives
in class org.springframework.boot.loader.Launcher
Exception
public void launch(String[] args)
launch
in class org.springframework.boot.loader.Launcher
protected void launch(String[] args, String mainClass, ClassLoader classLoader) throws Exception
launch
in class org.springframework.boot.loader.Launcher
Exception
protected ClassLoader createClassLoader(URL[] urls) throws Exception
createClassLoader
in class org.springframework.boot.loader.Launcher
Exception
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.