Class AgentBuilder.DescriptionStrategy.SuperTypeLoading.Asynchronous.ThreadSwitchingClassLoadingDelegate

    • Field Detail

      • executorService

        private final java.util.concurrent.ExecutorService executorService
        The executor service to delegate class loading to.
    • Constructor Detail

      • ThreadSwitchingClassLoadingDelegate

        protected ThreadSwitchingClassLoadingDelegate​(java.util.concurrent.ExecutorService executorService)
        Creates a new thread-switching class loading delegate.
        Parameters:
        executorService - The executor service to delegate class loading to.
    • Method Detail

      • load

        public java.lang.Class<?> load​(java.lang.String name,
                                       java.lang.ClassLoader classLoader)
        Loads a type.
        Specified by:
        load in interface TypeDescription.SuperTypeLoading.ClassLoadingDelegate
        Parameters:
        name - The type's name,
        classLoader - The class loader to load the type from which might be null to represent the bootstrap class loader.
        Returns:
        The loaded type.