Class NexusAccessor.Dispatcher.Unavailable

java.lang.Object
net.bytebuddy.dynamic.NexusAccessor.Dispatcher.Unavailable
All Implemented Interfaces:
NexusAccessor.Dispatcher
Enclosing interface:
NexusAccessor.Dispatcher

@Enhance public static class NexusAccessor.Dispatcher.Unavailable extends Object implements NexusAccessor.Dispatcher
A disabled dispatcher where a Nexus is not available.
  • Field Details

    • message

      private final String message
      The reason for the dispatcher being unavailable.
  • Constructor Details

    • Unavailable

      protected Unavailable(String message)
      Creates a new unavailable dispatcher.
      Parameters:
      message - The reason for the dispatcher being unavailable.
  • Method Details

    • isAlive

      public boolean isAlive()
      Returns true if this dispatcher is alive.
      Specified by:
      isAlive in interface NexusAccessor.Dispatcher
      Returns:
      true if this dispatcher is alive.
    • clean

      public void clean(Reference<? extends ClassLoader> reference)
      Cleans any dead entries of the system class loader's Nexus.
      Specified by:
      clean in interface NexusAccessor.Dispatcher
      Parameters:
      reference - The reference to remove.
    • register

      public void register(String name, @MaybeNull ClassLoader classLoader, @MaybeNull ReferenceQueue<? super ClassLoader> referenceQueue, int identification, LoadedTypeInitializer loadedTypeInitializer)
      Registers a type initializer with the system class loader's nexus.
      Specified by:
      register in interface NexusAccessor.Dispatcher
      Parameters:
      name - The name of a type for which a loaded type initializer is registered.
      classLoader - The class loader for which a loaded type initializer is registered.
      referenceQueue - A reference queue to notify about stale nexus entries or null if no queue should be referenced.
      identification - An identification for the initializer to run.
      loadedTypeInitializer - The loaded type initializer to be registered.