Interface PumpIntentFactory

All Known Implementing Classes:
XmlPumpIntentFactory

public interface PumpIntentFactory
Factory that returns intents for pumps. The default implementation is XmlPumpIntentFactory which allows intents, operations and resolver rules to be defined via xml data files. Developers can extend this class to support additional operations while still using the xml structure or can implement an entirely different factory using completely custom logic.
Since:
1.0
Version:
2023-01-22
  • Method Summary

    Modifier and Type
    Method
    Description
    getIntent(String intentType, Pump<?> pump)
    Return an intent of the specified type for the specified pump.
  • Method Details

    • getIntent

      PumpIntent getIntent(String intentType, Pump<?> pump)
      Return an intent of the specified type for the specified pump.
      Parameters:
      intentType - the type of intent to return (prime / purge / etc...)
      pump - the pump to return the intent for
      Returns:
      the intent or null if no match