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