Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The Result Specification was previously passed in on each process() call as the 2nd parameter. Now it is set when changed and it's up to the annotator to store it in a local field and make it available
when needed.

This approach lets the annotator receive a specific signal (a method call) when the Result Specification changes. Previously, it would need to check on every call to see if it changed.

The default impl base classes provide a set/getResultSpecification(...) method methods for this.

Annotator Context now UimaContext

...