Class AgentBuilder.DescriptionStrategy.SuperTypeLoading.UnlockingClassLoadingDelegate

    • Constructor Detail

      • UnlockingClassLoadingDelegate

        protected UnlockingClassLoadingDelegate​(AgentBuilder.CircularityLock circularityLock)
        Creates an unlocking class loading delegate.
        Parameters:
        circularityLock - The circularity lock to unlock.
    • Method Detail

      • load

        public java.lang.Class<?> load​(java.lang.String name,
                                       java.lang.ClassLoader classLoader)
                                throws java.lang.ClassNotFoundException
        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.
        Throws:
        java.lang.ClassNotFoundException - If the type could not be found.