Interface HelperResourceBuilder


  • public interface HelperResourceBuilder
    • Method Detail

      • register

        default void register​(String resourcePath)
        Registers a resource to be injected in the user's class loader.

        This is a convenience method for register(resourcePath, resourcePath).

      • register

        void register​(String applicationResourcePath,
                      String agentResourcePath)
        Registers a resource to be injected in the user's class loader.

        agentResourcePath can be the same as applicationResourcePath, but it is often desirable to use a slightly different path for agentResourcePath, so that multiple versions of an instrumentation (each injecting their own version of the resource) can co-exist inside the agent jar file.

        Parameters:
        applicationResourcePath - the path in the user's class loader at which to inject the resource
        agentResourcePath - the path in the agent class loader from which to get the content for the resource