public abstract class AbstractLauncher extends Object
| 构造器和说明 |
|---|
AbstractLauncher() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected ClassLoader |
createContainerClassLoader(ContainerArchive containerArchive)
Create a classloader for the ark container archive
|
protected ClassLoader |
createContainerClassLoader(URL[] urls,
ClassLoader parent)
Create a classloader for the specified URLs.
|
protected MainMethodRunner |
createMainMethodRunner(String mainClass,
String[] args) |
protected ContainerArchive |
getContainerArchive()
Returns the container archive archive
|
protected abstract ExecutableArchive |
getExecutableArchive()
Returns the executable archive
|
protected abstract String |
getMainClass()
Returns the main class that should be launched.
|
Object |
launch(String[] args)
Launch the ark container.
|
protected Object |
launch(String[] args,
String mainClass,
ClassLoader classLoader) |
Object |
launch(String[] args,
String classpath,
Method method)
Launch the ark container.
|
Object |
launch(String classpath,
Class testClass)
Launch the ark container in TEST run mode.
|
public Object launch(String[] args) throws Exception
Exception - if the ark container fails to launch.public Object launch(String[] args, String classpath, Method method) throws Exception
Exception - if the ark container fails to launch.public Object launch(String classpath, Class testClass) throws Exception
classpath - classpath of ark-biztestClass - test classExceptionprotected Object launch(String[] args, String mainClass, ClassLoader classLoader) throws Exception
Exceptionprotected MainMethodRunner createMainMethodRunner(String mainClass, String[] args)
protected abstract ExecutableArchive getExecutableArchive() throws Exception
Exceptionprotected ContainerArchive getContainerArchive() throws Exception
Exceptionprotected ClassLoader createContainerClassLoader(ContainerArchive containerArchive) throws Exception
containerArchive - the ark container archiveExceptionprotected ClassLoader createContainerClassLoader(URL[] urls, ClassLoader parent)
urls - the URLsparent - the parentCopyright © 2019. All rights reserved.