Class ShaftHealingProvider

java.lang.Object
com.shaft.heal.internal.ShaftHealingProvider
All Implemented Interfaces:
com.shaft.gui.internal.healing.HealingProvider

public class ShaftHealingProvider extends Object implements com.shaft.gui.internal.healing.HealingProvider
Default deterministic SHAFT Heal provider.

The provider derives and validates candidates but never executes the intended user action. SHAFT Engine owns action execution and reports the outcome through recordOutcome(HealingActionOutcome).

  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates the ServiceLoader provider.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    clear(org.openqa.selenium.WebDriver driver)
     
    Optional<com.shaft.gui.internal.healing.HealingExplanation>
    explain(String attemptId)
     
    void
    observe(com.shaft.gui.internal.healing.HealingObservation observation)
     
    void
    recordOutcome(com.shaft.gui.internal.healing.HealingActionOutcome outcome)
     
    Optional<com.shaft.gui.internal.healing.HealingResolution>
    resolve(com.shaft.gui.internal.healing.HealingRequest request)
     

    Methods inherited from class Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ShaftHealingProvider

      public ShaftHealingProvider()
      Creates the ServiceLoader provider.
  • Method Details

    • resolve

      public Optional<com.shaft.gui.internal.healing.HealingResolution> resolve(com.shaft.gui.internal.healing.HealingRequest request)
      Specified by:
      resolve in interface com.shaft.gui.internal.healing.HealingProvider
    • explain

      public Optional<com.shaft.gui.internal.healing.HealingExplanation> explain(String attemptId)
      Specified by:
      explain in interface com.shaft.gui.internal.healing.HealingProvider
    • observe

      public void observe(com.shaft.gui.internal.healing.HealingObservation observation)
      Specified by:
      observe in interface com.shaft.gui.internal.healing.HealingProvider
    • recordOutcome

      public void recordOutcome(com.shaft.gui.internal.healing.HealingActionOutcome outcome)
      Specified by:
      recordOutcome in interface com.shaft.gui.internal.healing.HealingProvider
    • clear

      public void clear(org.openqa.selenium.WebDriver driver)
      Specified by:
      clear in interface com.shaft.gui.internal.healing.HealingProvider