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 classloader. Because of a quirk with the way classes appended to the bootstrap classpath work, we first check our bootstrap proxy. If the loading classloader cannot find the desired resource, check up the classloader 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
Constructors Constructor Description AgentLocationStrategy(ClassLoader bootstrapProxy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description net.bytebuddy.dynamic.ClassFileLocatorclassFileLocator(ClassLoader classLoader)net.bytebuddy.dynamic.ClassFileLocatorclassFileLocator(ClassLoader classLoader, net.bytebuddy.utility.JavaModule javaModule)
-
-
-
Constructor Detail
-
AgentLocationStrategy
public AgentLocationStrategy(ClassLoader bootstrapProxy)
-
-
Method Detail
-
classFileLocator
public net.bytebuddy.dynamic.ClassFileLocator classFileLocator(ClassLoader classLoader)
-
classFileLocator
public net.bytebuddy.dynamic.ClassFileLocator classFileLocator(ClassLoader classLoader, net.bytebuddy.utility.JavaModule javaModule)
- Specified by:
classFileLocatorin interfacenet.bytebuddy.agent.builder.AgentBuilder.LocationStrategy
-
-