This class demonstrates annotating member variables with the @ConfigurationParameter annotation.
Defining configuration parameters in this way in combination with using the
uimaFIT's JCasAnnotator_ImplBase class obviates the need for an
initialize method at all because the super class initialize method calls
ConfigurationParameterInitializer.initialize(java.lang.Object, org.apache.uima.UimaContext). This method
initializes member variables annotated as configuration parameters using the configuration
parameter information provided in the UimaContext.
This class was copied from the uimaj-examples project and modified in following ways:
- The package name was changed to org.apache.uima.fit.tutorial.ex2
- The super class was changed to org.apache.uima.fit.component.JCasAnnotator_ImplBase
- The class is annotated with org.apache.uima.fit.descriptor.TypeCapability
- mPatterns and mLocations is annotated with @ConfigurationParameters
- the initialize method was removed