Class NexusAccessor.Dispatcher.Available

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Available​(java.lang.reflect.Method register, java.lang.reflect.Method clean)
      Creates a new dispatcher.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clean​(java.lang.ref.Reference<? extends java.lang.ClassLoader> reference)
      Cleans any dead entries of the system class loader's Nexus.
      boolean isAlive()
      Returns true if this dispatcher is alive.
      void register​(java.lang.String name, java.lang.ClassLoader classLoader, java.lang.ref.ReferenceQueue<? super java.lang.ClassLoader> referenceQueue, int identification, LoadedTypeInitializer loadedTypeInitializer)
      Registers a type initializer with the system class loader's nexus.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • clean

        public void clean​(java.lang.ref.Reference<? extends java.lang.ClassLoader> reference)
        Description copied from interface: NexusAccessor.Dispatcher
        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​(java.lang.String name,
                             java.lang.ClassLoader classLoader,
                             java.lang.ref.ReferenceQueue<? super java.lang.ClassLoader> referenceQueue,
                             int identification,
                             LoadedTypeInitializer loadedTypeInitializer)
        Description copied from interface: NexusAccessor.Dispatcher
        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.