@Test public void testExceptions() { ResourceInitializationException rie = null; try { CollectionReaderFactory.createReader(TestCR.class, (Object[]) null); } catch (ResourceInitializationException e) { rie = e; } assertNotNull(rie); }
public static CollectionReader createReader(String descriptorName, Object... configurationData) throws IOException, ResourceInitializationException, InvalidXMLException { ResourceManager resMgr = ResourceManagerFactory.newResourceManager(); Import imp = UIMAFramework.getResourceSpecifierFactory().createImport(); imp.setName(descriptorName); URL url = imp.findAbsoluteUrl(resMgr); ResourceSpecifier specifier = createResourceCreationSpecifier(url, configurationData); return UIMAFramework.produceCollectionReader(specifier, resMgr, null); }
CollectionReaderFactory { public static CollectionReader createReader(String descriptorName, Object... configurationData) throws IOException, ResourceInitializationException, InvalidXMLException { ResourceManager resMgr = ResourceManagerFactory.newResourceManager(); Import imp = UIMAFramework.getResourceSpecifierFactory().createImport(); imp.setName(descriptorName); URL url = imp.findAbsoluteUrl(resMgr); ResourceSpecifier specifier = createResourceCreationSpecifier(url, configurationData); return UIMAFramework.produceCollectionReader(specifier, resMgr, null); } }
CollectionReaderFactory { public static CollectionReader createReader(String descriptorName, Object... configurationData) throws IOException, ResourceInitializationException, InvalidXMLException { ResourceManager resMgr = ResourceManagerFactory.newResourceManager(); Import imp = UIMAFramework.getResourceSpecifierFactory().createImport(); imp.setName(descriptorName); URL url = imp.findAbsoluteUrl(resMgr); ResourceSpecifier specifier = createResourceCreationSpecifier(url, configurationData); return UIMAFramework.produceCollectionReader(specifier, resMgr, null); } private  CollectionReaderFactory(); }
CollectionReaderFactory { public static CollectionReader createReader(String descriptorName, Object... configurationData) throws IOException, ResourceInitializationException, InvalidXMLException { ResourceManager resMgr = ResourceManagerFactory.newResourceManager(); Import imp = UIMAFramework.getResourceSpecifierFactory().createImport(); imp.setName(descriptorName); URL url = imp.findAbsoluteUrl(resMgr); ResourceSpecifier specifier = createResourceCreationSpecifier(url, configurationData); return UIMAFramework.produceCollectionReader(specifier, resMgr, null); } private  CollectionReaderFactory(); static CollectionReader createReaderFromPath(String descriptorPath,
          Object... configurationData); @Deprecated static CollectionReader createCollectionReaderFromPath(String descriptorPath,
          Object... configurationData); static CollectionReaderDescription createReaderDescriptionFromPath(String descriptorPath,
          Object... configurationData); @Deprecated static CollectionReaderDescription createCollectionReaderDescriptionFromPath(
          String descriptorPath, Object... configurationData); static CollectionReader createReader(String descriptorName, Object... configurationData); @Deprecated static CollectionReader createCollectionReader(String descriptorName,
          Object... configurationData); static CollectionReader createReader(
          Class<? extends CollectionReader> readerClass, Object... configurationData); @Deprecated static CollectionReader createCollectionReader(
          Class<? extends CollectionReader> readerClass, Object... configurationData); static CollectionReader createReader(
          Class<? extends CollectionReader> readerClass, TypeSystemDescription typeSystem,
          Object... configurationData); @Deprecated static CollectionReader createCollectionReader(
          Class<? extends CollectionReader> readerClass, TypeSystemDescription typeSystem,
          Object... configurationData); @Deprecated static CollectionReader createReader(
          Class<? extends CollectionReader> readerClass, TypeSystemDescription typeSystem,
          String[] prioritizedTypeNames, Object... configurationData); @Deprecated static CollectionReader createCollectionReader(
          Class<? extends CollectionReader> readerClass, TypeSystemDescription typeSystem,
          String[] prioritizedTypeNames, Object... configurationData); static CollectionReader createReader(
          Class<? extends CollectionReader> readerClass, TypeSystemDescription typeSystem,
          TypePriorities typePriorities, Object... configurationData); @Deprecated static CollectionReader createCollectionReader(
          Class<? extends CollectionReader> readerClass, TypeSystemDescription typeSystem,
          TypePriorities typePriorities, Object... configurationData); static CollectionReader createReader(CollectionReaderDescription desc,
          Object... configurationData); @Deprecated static CollectionReader createCollectionReader(CollectionReaderDescription desc,
          Object... configurationData); static CollectionReaderDescription createReaderDescription(
          Class<? extends CollectionReader> readerClass, Object... configurationData); @Deprecated static CollectionReaderDescription createDescription(
          Class<? extends CollectionReader> readerClass, Object... configurationData); static CollectionReaderDescription createReaderDescription(
          Class<? extends CollectionReader> readerClass, TypeSystemDescription typeSystem,
          Object... configurationData); @Deprecated static CollectionReaderDescription createDescription(
          Class<? extends CollectionReader> readerClass, TypeSystemDescription typeSystem,
          Object... configurationData); static CollectionReaderDescription createReaderDescription(
          Class<? extends CollectionReader> readerClass, TypeSystemDescription typeSystem,
          String[] prioritizedTypeNames, Object... configurationData); @Deprecated static CollectionReaderDescription createDescription(
          Class<? extends CollectionReader> readerClass, TypeSystemDescription typeSystem,
          String[] prioritizedTypeNames, Object... configurationData); static CollectionReaderDescription createReaderDescription(
          Class<? extends CollectionReader> readerClass, TypeSystemDescription typeSystem,
          TypePriorities typePriorities, Object... configurationData); @Deprecated static CollectionReaderDescription createDescription(
          Class<? extends CollectionReader> readerClass, TypeSystemDescription typeSystem,
          TypePriorities typePriorities, Object... configurationData); static CollectionReaderDescription createReaderDescription(
          Class<? extends CollectionReader> readerClass, TypeSystemDescription typeSystem,
          TypePriorities typePriorities, FsIndexCollection indexes, Capability[] capabilities,
          Object... configurationData); @Deprecated static CollectionReaderDescription createDescription(
          Class<? extends CollectionReader> readerClass, TypeSystemDescription typeSystem,
          TypePriorities typePriorities, FsIndexCollection indexes, Capability[] capabilities,
          Object... configurationData); static CollectionReaderDescription createReaderDescription(
          Class<? extends CollectionReader> readerClass, TypeSystemDescription typeSystem,
          TypePriorities typePriorities, FsIndexCollection indexes, Capability[] capabilities,
          ConfigurationParameter[] configurationParameters, Object[] configurationValues); @Deprecated static CollectionReaderDescription createDescription(
          Class<? extends CollectionReader> readerClass, TypeSystemDescription typeSystem,
          TypePriorities typePriorities, FsIndexCollection indexes, Capability[] capabilities,
          ConfigurationParameter[] configurationParameters, Object[] configurationValues); static CollectionReaderDescription createReaderDescription(
          Class<? extends CollectionReader> readerClass, TypeSystemDescription typeSystem,
          TypePriorities typePriorities, FsIndexCollection indexes, Capability[] capabilities,
          ConfigurationParameter[] configurationParameters, Object[] configurationValues,
          Map<String, ExternalResourceDescription> externalResources); @Deprecated static CollectionReaderDescription createDescription(
          Class<? extends CollectionReader> readerClass, TypeSystemDescription typeSystem,
          TypePriorities typePriorities, FsIndexCollection indexes, Capability[] capabilities,
          ConfigurationParameter[] configurationParameters, Object[] configurationValues,
          Map<String, ExternalResourceDescription> externalResources); }
CollectionReaderFactory { public static CollectionReader createReader(String descriptorName, Object... configurationData) throws IOException, ResourceInitializationException, InvalidXMLException { ResourceManager resMgr = ResourceManagerFactory.newResourceManager(); Import imp = UIMAFramework.getResourceSpecifierFactory().createImport(); imp.setName(descriptorName); URL url = imp.findAbsoluteUrl(resMgr); ResourceSpecifier specifier = createResourceCreationSpecifier(url, configurationData); return UIMAFramework.produceCollectionReader(specifier, resMgr, null); } private  CollectionReaderFactory(); static CollectionReader createReaderFromPath(String descriptorPath,
          Object... configurationData); @Deprecated static CollectionReader createCollectionReaderFromPath(String descriptorPath,
          Object... configurationData); static CollectionReaderDescription createReaderDescriptionFromPath(String descriptorPath,
          Object... configurationData); @Deprecated static CollectionReaderDescription createCollectionReaderDescriptionFromPath(
          String descriptorPath, Object... configurationData); static CollectionReader createReader(String descriptorName, Object... configurationData); @Deprecated static CollectionReader createCollectionReader(String descriptorName,
          Object... configurationData); static CollectionReader createReader(
          Class<? extends CollectionReader> readerClass, Object... configurationData); @Deprecated static CollectionReader createCollectionReader(
          Class<? extends CollectionReader> readerClass, Object... configurationData); static CollectionReader createReader(
          Class<? extends CollectionReader> readerClass, TypeSystemDescription typeSystem,
          Object... configurationData); @Deprecated static CollectionReader createCollectionReader(
          Class<? extends CollectionReader> readerClass, TypeSystemDescription typeSystem,
          Object... configurationData); @Deprecated static CollectionReader createReader(
          Class<? extends CollectionReader> readerClass, TypeSystemDescription typeSystem,
          String[] prioritizedTypeNames, Object... configurationData); @Deprecated static CollectionReader createCollectionReader(
          Class<? extends CollectionReader> readerClass, TypeSystemDescription typeSystem,
          String[] prioritizedTypeNames, Object... configurationData); static CollectionReader createReader(
          Class<? extends CollectionReader> readerClass, TypeSystemDescription typeSystem,
          TypePriorities typePriorities, Object... configurationData); @Deprecated static CollectionReader createCollectionReader(
          Class<? extends CollectionReader> readerClass, TypeSystemDescription typeSystem,
          TypePriorities typePriorities, Object... configurationData); static CollectionReader createReader(CollectionReaderDescription desc,
          Object... configurationData); @Deprecated static CollectionReader createCollectionReader(CollectionReaderDescription desc,
          Object... configurationData); static CollectionReaderDescription createReaderDescription(
          Class<? extends CollectionReader> readerClass, Object... configurationData); @Deprecated static CollectionReaderDescription createDescription(
          Class<? extends CollectionReader> readerClass, Object... configurationData); static CollectionReaderDescription createReaderDescription(
          Class<? extends CollectionReader> readerClass, TypeSystemDescription typeSystem,
          Object... configurationData); @Deprecated static CollectionReaderDescription createDescription(
          Class<? extends CollectionReader> readerClass, TypeSystemDescription typeSystem,
          Object... configurationData); static CollectionReaderDescription createReaderDescription(
          Class<? extends CollectionReader> readerClass, TypeSystemDescription typeSystem,
          String[] prioritizedTypeNames, Object... configurationData); @Deprecated static CollectionReaderDescription createDescription(
          Class<? extends CollectionReader> readerClass, TypeSystemDescription typeSystem,
          String[] prioritizedTypeNames, Object... configurationData); static CollectionReaderDescription createReaderDescription(
          Class<? extends CollectionReader> readerClass, TypeSystemDescription typeSystem,
          TypePriorities typePriorities, Object... configurationData); @Deprecated static CollectionReaderDescription createDescription(
          Class<? extends CollectionReader> readerClass, TypeSystemDescription typeSystem,
          TypePriorities typePriorities, Object... configurationData); static CollectionReaderDescription createReaderDescription(
          Class<? extends CollectionReader> readerClass, TypeSystemDescription typeSystem,
          TypePriorities typePriorities, FsIndexCollection indexes, Capability[] capabilities,
          Object... configurationData); @Deprecated static CollectionReaderDescription createDescription(
          Class<? extends CollectionReader> readerClass, TypeSystemDescription typeSystem,
          TypePriorities typePriorities, FsIndexCollection indexes, Capability[] capabilities,
          Object... configurationData); static CollectionReaderDescription createReaderDescription(
          Class<? extends CollectionReader> readerClass, TypeSystemDescription typeSystem,
          TypePriorities typePriorities, FsIndexCollection indexes, Capability[] capabilities,
          ConfigurationParameter[] configurationParameters, Object[] configurationValues); @Deprecated static CollectionReaderDescription createDescription(
          Class<? extends CollectionReader> readerClass, TypeSystemDescription typeSystem,
          TypePriorities typePriorities, FsIndexCollection indexes, Capability[] capabilities,
          ConfigurationParameter[] configurationParameters, Object[] configurationValues); static CollectionReaderDescription createReaderDescription(
          Class<? extends CollectionReader> readerClass, TypeSystemDescription typeSystem,
          TypePriorities typePriorities, FsIndexCollection indexes, Capability[] capabilities,
          ConfigurationParameter[] configurationParameters, Object[] configurationValues,
          Map<String, ExternalResourceDescription> externalResources); @Deprecated static CollectionReaderDescription createDescription(
          Class<? extends CollectionReader> readerClass, TypeSystemDescription typeSystem,
          TypePriorities typePriorities, FsIndexCollection indexes, Capability[] capabilities,
          ConfigurationParameter[] configurationParameters, Object[] configurationValues,
          Map<String, ExternalResourceDescription> externalResources);  }