Package net.bytebuddy.agent.builder
Class AgentBuilder.RedefinitionStrategy.ResubmissionStrategy.Enabled.StorageKey
java.lang.Object
java.lang.ref.Reference<T>
java.lang.ref.WeakReference<ClassLoader>
net.bytebuddy.agent.builder.AgentBuilder.RedefinitionStrategy.ResubmissionStrategy.Enabled.StorageKey
- Enclosing class:
- AgentBuilder.RedefinitionStrategy.ResubmissionStrategy.Enabled
protected static class AgentBuilder.RedefinitionStrategy.ResubmissionStrategy.Enabled.StorageKey
extends WeakReference<ClassLoader>
A key for a class loader that only weakly references the class loader.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
The represented class loader's hash code or0
if this entry represents the bootstrap class loader. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
StorageKey
(ClassLoader classLoader) Creates a new storage key. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
protected boolean
Checks if this reference represents the bootstrap class loader.Methods inherited from class java.lang.ref.Reference
clear, clone, enqueue, get, isEnqueued, reachabilityFence, refersTo
-
Field Details
-
hashCode
private final int hashCodeThe represented class loader's hash code or0
if this entry represents the bootstrap class loader.
-
-
Constructor Details
-
StorageKey
Creates a new storage key.- Parameters:
classLoader
- The represented class loader ornull
for the bootstrap class loader.
-
-
Method Details