Class AgentBuilder.PoolStrategy.WithTypePoolCache

    • Method Detail

      • typePool

        public TypePool typePool​(ClassFileLocator classFileLocator,
                                 ClassLoader classLoader)
        Creates a type pool for a given class file locator.
        Specified by:
        typePool in interface AgentBuilder.PoolStrategy
        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.
      • locate

        protected abstract TypePool.CacheProvider locate​(ClassLoader classLoader)
        Locates a cache provider for a given class loader.
        Parameters:
        classLoader - The class loader for which to locate a cache. This class loader might be null to represent the bootstrap loader.
        Returns:
        The cache provider to use.