Interface WatchMaker

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface WatchMaker
A WatchMaker is a factory class for creating a Watch.
  • Method Summary

    Modifier and Type
    Method
    Description
    makeWatch(WatchManager watchManager, ItemFeed out, XPathContext context)
    Make a Trigger: this comprises (a) a pattern to match the nodes that should be processed during a streaming pass of the source document, and (b) the processing of those nodes by a WatchAction or perhaps a sequence of WatchActions in a pipeline.
  • Method Details

    • makeWatch

      Trigger makeWatch(WatchManager watchManager, ItemFeed out, XPathContext context) throws XPathException
      Make a Trigger: this comprises (a) a pattern to match the nodes that should be processed during a streaming pass of the source document, and (b) the processing of those nodes by a WatchAction or perhaps a sequence of WatchActions in a pipeline. If a pipeline is needed, this method is responsible for constructing the entire pipeline
      Parameters:
      watchManager - the WatchManager
      out - the destination for events representing the output of this pipeline
      context - the dynamic evaluation context
      Returns:
      the new Trigger
      Throws:
      XPathException - if any dynamic error occurs