Interface AgentBuilder.PoolStrategy

    • Method Detail

      • typePool

        TypePool typePool​(ClassFileLocator classFileLocator,
                          java.lang.ClassLoader classLoader)
        Creates a type pool for a given class file locator.
        Parameters:
        classFileLocator - The class file locator to use.
        classLoader - The class loader for which the class file locator was created.
        Returns:
        A type pool for the supplied class file locator.
      • typePool

        TypePool typePool​(ClassFileLocator classFileLocator,
                          java.lang.ClassLoader classLoader,
                          java.lang.String name)
        Creates a type pool for a given class file locator. If a cache is used, the type that is currently instrumented is not used.
        Parameters:
        classFileLocator - The class file locator to use.
        classLoader - The class loader for which the class file locator was created.
        name - The name of the currently instrumented type.
        Returns:
        A type pool for the supplied class file locator.