Uploaded image for project: 'Tupelo'
  1. Tupelo
  2. TUP-46

FilterContext should do smart perform

XMLWordPrintableJSON

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 2.4.2
    • 2.0
    • Kernel
    • None

      Using the generic Context to do a operation will end up always calling public void perform(Operator o) of the class extending FilterContext. If possible this method should use reflection to find the right method to call, if no such method exists, it should call perform on the context stored in the FilterContext.

      I needed to add the following to my code to make it call perform with a TripleWriter, the code itself was pretty much copied from LoggingContext.

      public void perform(Operator o) throws OperatorException {
      if (o instanceof TripleWriter)

      { perform((TripleWriter)o); }

      else

      { getContext().perform(o); }

      }

              futrelle Joe Futrelle (Inactive)
              kooper Rob Kooper
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: