public static class ClasspathLauncher.ClassPathArchive extends Object implements ExecutableArchive
Archive.Entry, Archive.EntryFilter| 限定符和类型 | 字段和说明 |
|---|---|
static String |
FILE_IN_JAR |
| 构造器和说明 |
|---|
ClasspathLauncher.ClassPathArchive(String className,
String methodName,
String methodDescription,
URL[] urls) |
ClasspathLauncher.ClassPathArchive(URL[] urls) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected BizArchive |
createDirectoryBizModuleArchive() |
protected ContainerArchive |
createDirectoryContainerArchive() |
List<URL> |
filterUrls(String resource) |
protected URL[] |
filterURLs(URL[] urls)
this method is used to chose jar file which is contained in sofa-ark-all.jar
|
List<BizArchive> |
getBizArchives() |
ContainerArchive |
getContainerArchive() |
InputStream |
getInputStream(ZipEntry zipEntry) |
protected ContainerArchive |
getJarContainerArchive() |
Manifest |
getManifest() |
Archive |
getNestedArchive(Archive.Entry entry) |
List<Archive> |
getNestedArchives(Archive.EntryFilter filter) |
List<PluginArchive> |
getPluginArchives() |
URL |
getUrl() |
Iterator<Archive.Entry> |
iterator() |
protected URL[] |
parseClassPathFromSurefireBoot(URL surefireBootJar)
when execute mvn test, the classpath would be recorded in a MANIFEST.MF file ,
including a surefire boot jar.
|
public ClasspathLauncher.ClassPathArchive(URL[] urls)
public ContainerArchive getContainerArchive() throws Exception
getContainerArchive 在接口中 ExecutableArchiveExceptionprotected ContainerArchive getJarContainerArchive() throws Exception
Exceptionpublic List<BizArchive> getBizArchives() throws Exception
getBizArchives 在接口中 ExecutableArchiveExceptionpublic List<PluginArchive> getPluginArchives() throws Exception
getPluginArchives 在接口中 ExecutableArchiveExceptionpublic Manifest getManifest()
getManifest 在接口中 Archivepublic List<Archive> getNestedArchives(Archive.EntryFilter filter)
getNestedArchives 在接口中 Archivepublic Archive getNestedArchive(Archive.Entry entry)
getNestedArchive 在接口中 Archivepublic InputStream getInputStream(ZipEntry zipEntry)
getInputStream 在接口中 Archivepublic Iterator<Archive.Entry> iterator()
iterator 在接口中 Iterable<Archive.Entry>protected BizArchive createDirectoryBizModuleArchive()
protected ContainerArchive createDirectoryContainerArchive()
protected URL[] filterURLs(URL[] urls)
Copyright © 2018. All rights reserved.