Class AgentBuilder.DescriptionStrategy.SuperTypeLoading.Asynchronous.ThreadSwitchingClassLoadingDelegate.NotifyingClassLoadingAction

  • All Implemented Interfaces:
    java.util.concurrent.Callable<java.lang.Class<?>>
    Enclosing class:
    AgentBuilder.DescriptionStrategy.SuperTypeLoading.Asynchronous.ThreadSwitchingClassLoadingDelegate

    protected static class AgentBuilder.DescriptionStrategy.SuperTypeLoading.Asynchronous.ThreadSwitchingClassLoadingDelegate.NotifyingClassLoadingAction
    extends java.lang.Object
    implements java.util.concurrent.Callable<java.lang.Class<?>>
    A class loading action that notifies the class loader's lock after the type was loaded.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.ClassLoader classLoader
      The type's class loader or null if the type is loaded by the bootstrap loader.
      private java.lang.String name
      The loaded type's name.
      private java.util.concurrent.atomic.AtomicBoolean signal
      The signal that indicates the completion of the class loading with false.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected NotifyingClassLoadingAction​(java.lang.String name, java.lang.ClassLoader classLoader, java.util.concurrent.atomic.AtomicBoolean signal)
      Creates a notifying class loading action.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Class<?> call()
      • Methods inherited from class java.lang.Object

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

      • name

        private final java.lang.String name
        The loaded type's name.
      • classLoader

        private final java.lang.ClassLoader classLoader
        The type's class loader or null if the type is loaded by the bootstrap loader.
      • signal

        private final java.util.concurrent.atomic.AtomicBoolean signal
        The signal that indicates the completion of the class loading with false.
    • Constructor Detail

      • NotifyingClassLoadingAction

        protected NotifyingClassLoadingAction​(java.lang.String name,
                                              java.lang.ClassLoader classLoader,
                                              java.util.concurrent.atomic.AtomicBoolean signal)
        Creates a notifying class loading action.
        Parameters:
        name - The loaded type's name.
        classLoader - The type's class loader or null if the type is loaded by the bootstrap loader.
        signal - The signal that indicates the completion of the class loading with false.
    • Method Detail

      • call

        public java.lang.Class<?> call()
                                throws java.lang.ClassNotFoundException
        Specified by:
        call in interface java.util.concurrent.Callable<java.lang.Class<?>>
        Throws:
        java.lang.ClassNotFoundException