public void initializeAllProcessors(UimaContext aContext) {
		for(Priority prio : processorNames.keySet()) {
			for(String pn : processorNames.get(prio)) {
				try {
					Class<?> c = Class.forName(pn);
					GenericProcessor p = (GenericProcessor) c.newInstance();
					p.initialize(aContext);
					processors.get(prio).add(p);
				} catch (Exception exception) {
					exception.printStackTrace();
					Logger.printError(component, "Unable to initialize registered Processor " + pn + ", got: " + exception.toString());
					System.exit(-1);
				}
			}
		}
		
		this.initialized = true;
	}
public void initializeAllProcessors ( UimaContext aContext ) { for ( Priority prio : processorNames . keySet ( ) ) { for ( String pn : processorNames . get ( prio ) ) { try { Class < ? > c = Class . forName ( pn ) ; GenericProcessor p = ( GenericProcessor ) c . newInstance ( ) ; p . initialize ( aContext ) ; processors . get ( prio ) . add ( p ) ; } catch ( Exception exception ) { exception . printStackTrace ( ) ; Logger . printError ( component , "Unable to initialize registered Processor " + pn + ", got: " + exception . toString ( ) ) ; System . exit ( - 1 ) ; } } } this . initialized = true ; }
Based on reflection, this method instantiates and initializes all of the
registered Processors.
@param jcas