public class DirDependency extends Object implements Dependency
MANIFEST_CLASSPATH, RUNNER_CLASS| Constructor and Description |
|---|
DirDependency(URL classPathDependencyUrl,
String name,
String mainClass) |
| Modifier and Type | Method and Description |
|---|---|
protected URL[] |
constructClassPath(String manifestClassPath,
URL classPathDependencyUrl)
Constructs the spring-boot app classpath.
|
protected ClassLoader |
createClassLoader(URL[] urls)
Create a classloader for the specified URLs.
|
void |
start(String[] args) |
void |
stop() |
public void start(String[] args) throws Exception
start in interface Dependencyargs - to pass to the spring-boot appException - if an error occurs during the spring-boot app startupprotected ClassLoader createClassLoader(URL[] urls) throws Exception
urls - the URLsException - if the classloader cannot be createdprotected URL[] constructClassPath(String manifestClassPath, URL classPathDependencyUrl) throws Exception
manifestClassPath - the list of jars defined in the Class-Path key of the manifestclassPathDependencyUrl - the URL to the spring boot app to runExceptionCopyright © 2019. All rights reserved.