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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.bytebuddy.dynamic.ClassFileLocator
     
    net.bytebuddy.dynamic.ClassFileLocator
    classFileLocator(ClassLoader classLoader, net.bytebuddy.utility.JavaModule javaModule)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AgentLocationStrategy

      public AgentLocationStrategy(ClassLoader bootstrapProxy)
  • Method Details

    • 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:
      classFileLocator in interface net.bytebuddy.agent.builder.AgentBuilder.LocationStrategy