}
private static void initUimaApplicationContext(final ApplicationContext aApplicationContext) {
new UIMAFramework_impl() {
{
CompositeResourceFactory_impl factory = (CompositeResourceFactory_impl) getResourceFactory();
factory.registerFactory(CasConsumerDescription.class,
aApplicationContext.getBean(CasConsumerFactory_impl.class));
factory.registerFactory(CasInitializerDescription.class,
aApplicationContext.getBean(CasInitializerFactory_impl.class));
factory.registerFactory(CollectionReaderDescription.class,
aApplicationContext.getBean(CollectionReaderFactory_impl.class));
factory.registerFactory(ResourceCreationSpecifier.class,
aApplicationContext.getBean(AnalysisEngineFactory_impl.class));
factory.registerFactory(CustomResourceSpecifier.class,
aApplicationContext.getBean(CustomResourceFactory_impl.class));
}
};
}