Class AgentBuilder.PatchMode.Handler.ForPatchWithOverlap

    • Constructor Detail

      • ForPatchWithOverlap

        protected ForPatchWithOverlap​(ResettableClassFileTransformer classFileTransformer)
        Creates a new handler.
        Parameters:
        classFileTransformer - The class file transformer to deregister.
    • Method Detail

      • onBeforeRegistration

        public void onBeforeRegistration​(java.lang.instrument.Instrumentation instrumentation)
        Invoked prior to registering a class file transformer.
        Specified by:
        onBeforeRegistration in interface AgentBuilder.PatchMode.Handler
        Parameters:
        instrumentation - The instrumentation to use.
      • onRegistration

        public boolean onRegistration​(ResettableClassFileTransformer classFileTransformer)
        Invoked upon registering a class file transformer.
        Specified by:
        onRegistration in interface AgentBuilder.PatchMode.Handler
        Parameters:
        classFileTransformer - The class file transformer to register.
        Returns:
        true if a regular registration should be applied to the transformer.
      • onAfterRegistration

        public void onAfterRegistration​(java.lang.instrument.Instrumentation instrumentation)
        Invoked right after registering a class file transformer.
        Specified by:
        onAfterRegistration in interface AgentBuilder.PatchMode.Handler
        Parameters:
        instrumentation - The instrumentation to use.