Interface AgentBuilder.PoolStrategy

All Known Implementing Classes:
AgentBuilder.PoolStrategy.ClassLoading, AgentBuilder.PoolStrategy.Default, AgentBuilder.PoolStrategy.Eager, AgentBuilder.PoolStrategy.WithTypePoolCache, AgentBuilder.PoolStrategy.WithTypePoolCache.Simple
Enclosing interface:
AgentBuilder

public static interface AgentBuilder.PoolStrategy
A type locator allows to specify how TypeDescriptions are resolved by an AgentBuilder.
  • Method Details

    • typePool

      TypePool typePool(ClassFileLocator classFileLocator, @MaybeNull 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 or null if the boot loader.
      Returns:
      A type pool for the supplied class file locator.
    • typePool

      TypePool typePool(ClassFileLocator classFileLocator, @MaybeNull ClassLoader classLoader, 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 or null if the boot loader.
      name - The name of the currently instrumented type.
      Returns:
      A type pool for the supplied class file locator.