Interface InstrumentationContextBuilder


  • public interface InstrumentationContextBuilder
    This interface allows registering ContextStore class pairs.

    This interface should not be implemented by the javaagent extension developer - the javaagent will provide the implementation of all transformations described here.

    • Method Detail

      • register

        InstrumentationContextBuilder register​(String keyClassName,
                                               String contextClassName)
        Register the association between the keyClassName and the contextClassName. Class pairs registered using this method will be available as ContextStores in the runtime; obtainable by calling InstrumentationContext.get(Class, Class).
        Parameters:
        keyClassName - The name of the class that an instance of class named contextClassName will be attached to.
        contextClassName - The instrumentation context class name.
        Returns:
        this.
        See Also:
        InstrumentationContext, ContextStore