Package io.quarkus.bootstrap.runner
Interface ClassLoadingResource
-
- All Known Implementing Classes:
JarResource
public interface ClassLoadingResource
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidclose()ManifestInfogetManifestInfo()ProtectionDomaingetProtectionDomain()This can only be called afterinithas been calledbyte[]getResourceData(String resource)URLgetResourceURL(String resource)voidinit(ClassLoader runnerClassLoader)A lifecycle hook that should be called when the ClassLoader to which this resource belongs to is constructeddefault voidresetInternalCaches()This is an optional hint to release internal caches, if possible.
-
-
-
Method Detail
-
init
void init(ClassLoader runnerClassLoader)
A lifecycle hook that should be called when the ClassLoader to which this resource belongs to is constructed
-
getResourceData
byte[] getResourceData(String resource)
-
getManifestInfo
ManifestInfo getManifestInfo()
-
getProtectionDomain
ProtectionDomain getProtectionDomain()
This can only be called afterinithas been called
-
close
void close()
-
resetInternalCaches
default void resetInternalCaches()
This is an optional hint to release internal caches, if possible. It is different thanclose()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.
-
-