Package io.quarkus.bootstrap.runner
Class JarResource
java.lang.Object
io.quarkus.bootstrap.runner.JarResource
- All Implemented Interfaces:
ClassLoadingResource
A jar resource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleanThis can only be called afterinithas been calledbyte[]getResourceData(String resource) getResourceURL(String resource) inthashCode()voidinit()A lifecycle hook that should be called when the ClassLoader to which this resource belongs to is constructedvoidThis is an optional hint to release internal caches, if possible.toString()
-
Constructor Details
-
JarResource
-
-
Method Details
-
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
- Specified by:
getResourceDatain interfaceClassLoadingResource
-
getResourceURL
- Specified by:
getResourceURLin interfaceClassLoadingResource
-
getManifestInfo
- Specified by:
getManifestInfoin interfaceClassLoadingResource
-
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
-
toString
-
equals
-
hashCode
public int hashCode()
-