Package io.quarkus.bootstrap.runner
Class JarResource
- java.lang.Object
-
- io.quarkus.bootstrap.runner.JarResource
-
- All Implemented Interfaces:
ClassLoadingResource
public class JarResource extends Object implements ClassLoadingResource
A jar resource
-
-
Constructor Summary
Constructors Constructor Description JarResource(ManifestInfo manifestInfo, Path jarPath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleanequals(Object o)ManifestInfogetManifestInfo()ProtectionDomaingetProtectionDomain()This can only be called afterinithas been calledbyte[]getResourceData(String resource)URLgetResourceURL(String resource)inthashCode()voidinit()A lifecycle hook that should be called when the ClassLoader to which this resource belongs to is constructedvoidresetInternalCaches()This is an optional hint to release internal caches, if possible.StringtoString()
-
-
-
Constructor Detail
-
JarResource
public JarResource(ManifestInfo manifestInfo, Path jarPath)
-
-
Method Detail
-
init
public void init()
Description copied from interface:ClassLoadingResourceA lifecycle hook that should be called when the ClassLoader to which this resource belongs to is constructed- Specified by:
initin interfaceClassLoadingResource
-
getResourceData
public byte[] getResourceData(String resource)
- Specified by:
getResourceDatain interfaceClassLoadingResource
-
getResourceURL
public URL getResourceURL(String resource)
- Specified by:
getResourceURLin interfaceClassLoadingResource
-
getManifestInfo
public ManifestInfo getManifestInfo()
- Specified by:
getManifestInfoin interfaceClassLoadingResource
-
getProtectionDomain
public ProtectionDomain getProtectionDomain()
Description copied from interface:ClassLoadingResourceThis can only be called afterinithas been called- Specified by:
getProtectionDomainin interfaceClassLoadingResource
-
close
public void close()
- Specified by:
closein interfaceClassLoadingResource
-
resetInternalCaches
public void resetInternalCaches()
Description copied from interface:ClassLoadingResourceThis is an optional hint to release internal caches, if possible. It is different thanClassLoadingResource.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.- Specified by:
resetInternalCachesin interfaceClassLoadingResource
-
-