Class AgentLocationStrategy
java.lang.Object
io.opentelemetry.javaagent.tooling.muzzle.AgentLocationStrategy
- All Implemented Interfaces:
net.bytebuddy.agent.builder.AgentBuilder.LocationStrategy
public class AgentLocationStrategy
extends Object
implements net.bytebuddy.agent.builder.AgentBuilder.LocationStrategy
Locate resources with the loading class loader. Because of a quirk with the way classes appended
to the bootstrap classpath work, we first check our bootstrap proxy. If the loading class loader
cannot find the desired resource, check up the class loader hierarchy until a resource is found.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.agent.builder.AgentBuilder.LocationStrategy
net.bytebuddy.agent.builder.AgentBuilder.LocationStrategy.Compound, net.bytebuddy.agent.builder.AgentBuilder.LocationStrategy.ForClassLoader, net.bytebuddy.agent.builder.AgentBuilder.LocationStrategy.NoOp, net.bytebuddy.agent.builder.AgentBuilder.LocationStrategy.Simple -
Constructor Summary
ConstructorsConstructorDescriptionAgentLocationStrategy(ClassLoader bootstrapProxy, List<net.bytebuddy.dynamic.ClassFileLocator> additionalLocators) -
Method Summary
Modifier and TypeMethodDescriptionnet.bytebuddy.dynamic.ClassFileLocatorclassFileLocator(ClassLoader classLoader) net.bytebuddy.dynamic.ClassFileLocatorclassFileLocator(ClassLoader classLoader, net.bytebuddy.utility.JavaModule javaModule)
-
Constructor Details
-
AgentLocationStrategy
public AgentLocationStrategy(ClassLoader bootstrapProxy, List<net.bytebuddy.dynamic.ClassFileLocator> additionalLocators)
-
-
Method Details
-
classFileLocator
-
classFileLocator
public net.bytebuddy.dynamic.ClassFileLocator classFileLocator(ClassLoader classLoader, net.bytebuddy.utility.JavaModule javaModule) - Specified by:
classFileLocatorin interfacenet.bytebuddy.agent.builder.AgentBuilder.LocationStrategy
-