public class JarContext extends Object
| 构造器和说明 |
|---|
JarContext(String jarFilePath,
String name,
VersionInfo versionInfo,
Manifest manifest,
Attributes attributes) |
| 限定符和类型 | 方法和说明 |
|---|---|
Attributes |
getAttributes() |
JarFile |
getJarFile() |
String |
getJarFilePath() |
Manifest |
getManifest() |
String |
getName() |
org.springframework.core.io.Resource |
getResource(String locationPattern)
在JAR包中检索单个资源
|
org.springframework.core.io.Resource[] |
getResources(String locationPattern)
在JAR包中检索资源
|
VersionInfo |
getVersionInfo() |
void |
setVersion(String version) |
void |
setVersionInfo(VersionInfo versionInfo) |
public JarContext(String jarFilePath, String name, VersionInfo versionInfo, Manifest manifest, Attributes attributes)
public String getJarFilePath()
public String getName()
public VersionInfo getVersionInfo()
public void setVersionInfo(VersionInfo versionInfo)
public void setVersion(String version)
public Manifest getManifest()
public Attributes getAttributes()
public JarFile getJarFile()
@NonNull public org.springframework.core.io.Resource[] getResources(String locationPattern)
locationPattern - 资源路径匹配串@Nullable public org.springframework.core.io.Resource getResource(String locationPattern)
locationPattern - 资源路径匹配串Copyright © 2021 EasyJ寮�婧愮ぞ鍖�. All rights reserved.