Package net.bytebuddy.agent.builder
Class AgentBuilder.RedefinitionStrategy.ResubmissionStrategy.Enabled.StorageKey
- java.lang.Object
-
- java.lang.ref.Reference<T>
-
- java.lang.ref.WeakReference<java.lang.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 java.lang.ref.WeakReference<java.lang.ClassLoader>A key for a class loader that only weakly references the class loader.
-
-
Field Summary
Fields Modifier and Type Field Description private inthashCodeThe represented class loader's hash code or0if this entry represents the bootstrap class loader.
-
Constructor Summary
Constructors Modifier Constructor Description protectedStorageKey(java.lang.ClassLoader classLoader)Creates a new storage key.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)inthashCode()protected booleanisBootstrapLoader()Checks if this reference represents the bootstrap class loader.
-
-
-
Constructor Detail
-
StorageKey
protected StorageKey(@MaybeNull java.lang.ClassLoader classLoader)
Creates a new storage key.- Parameters:
classLoader- The represented class loader ornullfor the bootstrap class loader.
-
-
Method Detail
-
isBootstrapLoader
protected boolean isBootstrapLoader()
Checks if this reference represents the bootstrap class loader.- Returns:
trueif this entry represents the bootstrap class loader.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(@MaybeNull java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
-