Interface HelperResourceBuilder
-
public interface HelperResourceBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidregister(String resourcePath)Registers a resource to be injected in the user's class loader.voidregister(String applicationResourcePath, String agentResourcePath)Registers a resource to be injected in the user's class loader.
-
-
-
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.agentResourcePathcan be the same asapplicationResourcePath, but it is often desirable to use a slightly different path foragentResourcePath, 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 resourceagentResourcePath- the path in the agent class loader from which to get the content for the resource
-
-