public class JarResource extends Object implements ClassLoadingResource
| Constructor and Description |
|---|
JarResource(ManifestInfo manifestInfo,
Path jarPath) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
ManifestInfo |
getManifestInfo() |
ProtectionDomain |
getProtectionDomain()
This can only be called after
init has been called |
byte[] |
getResourceData(String resource) |
URL |
getResourceURL(String resource) |
void |
init(ClassLoader runnerClassLoader)
A lifecycle hook that should be called when the ClassLoader to which this resource belongs to
is constructed
|
void |
resetInternalCaches()
This is an optional hint to release internal caches, if possible.
|
String |
toString() |
public JarResource(ManifestInfo manifestInfo, Path jarPath)
public void init(ClassLoader runnerClassLoader)
ClassLoadingResourceinit in interface ClassLoadingResourcepublic byte[] getResourceData(String resource)
getResourceData in interface ClassLoadingResourcepublic URL getResourceURL(String resource)
getResourceURL in interface ClassLoadingResourcepublic ManifestInfo getManifestInfo()
getManifestInfo in interface ClassLoadingResourcepublic ProtectionDomain getProtectionDomain()
ClassLoadingResourceinit has been calledgetProtectionDomain in interface ClassLoadingResourcepublic void close()
close in interface ClassLoadingResourcepublic void resetInternalCaches()
ClassLoadingResourceClassLoadingResource.close() as it's possible that
this ClassLoadingResource will still be used after this,
so it needs to be able to rebuild any lost state in case of need.
However one can assume that when this is invoked, there is
some reasonable expectation that this resource is no longer going
to be necessary.resetInternalCaches in interface ClassLoadingResourceCopyright © 2021 JBoss by Red Hat. All rights reserved.