Class AgentBuilder.RedefinitionStrategy.ResubmissionStrategy.Enabled.StorageKey

java.lang.Object
java.lang.ref.Reference<ClassLoader>
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 Details

    • hashCode

      private final int hashCode
      The represented class loader's hash code or 0 if this entry represents the bootstrap class loader.
  • Constructor Details

    • StorageKey

      protected StorageKey(@MaybeNull ClassLoader classLoader)
      Creates a new storage key.
      Parameters:
      classLoader - The represented class loader or null for the bootstrap class loader.
  • Method Details

    • isBootstrapLoader

      protected boolean isBootstrapLoader()
      Checks if this reference represents the bootstrap class loader.
      Returns:
      true if this entry represents the bootstrap class loader.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(@MaybeNull Object other)
      Overrides:
      equals in class Object