Interface AgentBuilder.ClassFileBufferStrategy

    • Method Detail

      • resolve

        ClassFileLocator resolve​(String name,
                                 byte[] binaryRepresentation,
                                 ClassLoader classLoader,
                                 JavaModule module,
                                 ProtectionDomain protectionDomain)
        Resolves a class file locator for the class file buffer that is provided to the class file transformer.
        Parameters:
        name - The instrumented type's binary name.
        binaryRepresentation - The instrumented type's binary representation.
        classLoader - The instrumented type's class loader or null if the type is loaded by the bootstrap class loader.
        module - The instrumented type's module or null if the current VM does not support modules.
        protectionDomain - The instrumented type's protection domain.
        Returns:
        An appropriate class file locator.