Class HelperResource
java.lang.Object
io.opentelemetry.javaagent.tooling.muzzle.HelperResource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanTrue if the resource should be injected to all classloaders, false otherwise.static HelperResourceCreate a new helper resource object.abstract StringThe path in the agent class loader from which to get the content for the resource.abstract StringThe path in the user's class loader at which to inject the resource.
-
Constructor Details
-
HelperResource
public HelperResource()
-
-
Method Details
-
create
public static HelperResource create(String applicationPath, String agentPath, boolean allClassLoaders) Create a new helper resource object.- Parameters:
applicationPath- The path in the user's class loader at which to inject the resource.agentPath- The path in the agent class loader from which to get the content for the resource.allClassLoaders- True if the resource should be injected to all classloaders, false otherwise.
-
getApplicationPath
The path in the user's class loader at which to inject the resource. -
getAgentPath
The path in the agent class loader from which to get the content for the resource. -
allClassLoaders
public abstract boolean allClassLoaders()True if the resource should be injected to all classloaders, false otherwise.
-