Enum AgentBuilder.PoolStrategy.Eager

    • Constructor Detail

      • Eager

        private Eager​(TypePool.Default.ReaderMode readerMode)
        Creates a new type locator.
        Parameters:
        readerMode - The reader mode to apply by this type locator.
    • Method Detail

      • values

        public static AgentBuilder.PoolStrategy.Eager[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (AgentBuilder.PoolStrategy.Eager c : AgentBuilder.PoolStrategy.Eager.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static AgentBuilder.PoolStrategy.Eager valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • typePool

        public TypePool typePool​(ClassFileLocator classFileLocator,
                                 java.lang.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.
      • typePool

        public 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.
        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.
        name - The name of the currently instrumented type.
        Returns:
        A type pool for the supplied class file locator.