public class AppJarLauncher
extends org.springframework.boot.loader.JarLauncher
JarLauncher
that supports launching an application archive.
Also, it restricts the classloader of the launched application to the contents
of the uber-jar and the extension classloader of the JVM.Constructor and Description |
---|
AppJarLauncher(org.springframework.boot.loader.archive.Archive archive) |
Modifier and Type | Method and Description |
---|---|
protected ClassLoader |
createClassLoader(URL[] urls) |
void |
launch(String[] args) |
protected void |
launch(String[] args,
String mainClass,
ClassLoader classLoader) |
isNestedArchive, main, postProcessClassPathArchives
getArchive, getClassPathArchives, getMainClass
public AppJarLauncher(org.springframework.boot.loader.archive.Archive archive)
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.ExecutableArchiveLauncher
Exception
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.