@Test public void testResourceMetaData() throws Exception { FlowControllerDescription desc = FlowControllerFactory .createFlowControllerDescription(TestFlowController.class); org.apache.uima.resource.metadata.ResourceMetaData meta = desc.getMetaData(); assertEquals("dummy", meta.getName()); assertEquals("1.0", meta.getVersion()); assertEquals("Just a dummy", meta.getDescription()); assertEquals("ASL 2.0", meta.getCopyright()); assertEquals("uimaFIT", meta.getVendor()); }
public static FlowControllerDescription createFlowControllerDescription( Class<? extends FlowController> flowControllerClass, Object... configurationData) throws ResourceInitializationException { ensureParametersComeInPairs(configurationData); Map<String, ExternalResourceDescription> externalResources = ExternalResourceFactory .extractResourceParameters(configurationData); ConfigurationData cdata = createConfigurationData(configurationData); return createFlowControllerDescription(flowControllerClass, cdata.configurationParameters, cdata.configurationValues, externalResources); }
FlowControllerFactory { public static FlowControllerDescription createFlowControllerDescription( Class<? extends FlowController> flowControllerClass, Object... configurationData) throws ResourceInitializationException { ensureParametersComeInPairs(configurationData); Map<String, ExternalResourceDescription> externalResources = ExternalResourceFactory .extractResourceParameters(configurationData); ConfigurationData cdata = createConfigurationData(configurationData); return createFlowControllerDescription(flowControllerClass, cdata.configurationParameters, cdata.configurationValues, externalResources); } }
FlowControllerFactory { public static FlowControllerDescription createFlowControllerDescription( Class<? extends FlowController> flowControllerClass, Object... configurationData) throws ResourceInitializationException { ensureParametersComeInPairs(configurationData); Map<String, ExternalResourceDescription> externalResources = ExternalResourceFactory .extractResourceParameters(configurationData); ConfigurationData cdata = createConfigurationData(configurationData); return createFlowControllerDescription(flowControllerClass, cdata.configurationParameters, cdata.configurationValues, externalResources); } private  FlowControllerFactory(); }
FlowControllerFactory { public static FlowControllerDescription createFlowControllerDescription( Class<? extends FlowController> flowControllerClass, Object... configurationData) throws ResourceInitializationException { ensureParametersComeInPairs(configurationData); Map<String, ExternalResourceDescription> externalResources = ExternalResourceFactory .extractResourceParameters(configurationData); ConfigurationData cdata = createConfigurationData(configurationData); return createFlowControllerDescription(flowControllerClass, cdata.configurationParameters, cdata.configurationValues, externalResources); } private  FlowControllerFactory(); static FlowControllerDescription createFlowControllerDescription(
          Class<? extends FlowController> flowControllerClass, Object... configurationData); static FlowControllerDescription createFlowControllerDescription(
          Class<? extends FlowController> flowControllerClass,
          ConfigurationParameter[] configurationParameters, Object[] configurationValues); static FlowControllerDescription createFlowControllerDescription(
          Class<? extends FlowController> flowControllerClass,
          ConfigurationParameter[] configurationParameters, Object[] configurationValues,
          Map<String, ExternalResourceDescription> externalResources); }
FlowControllerFactory { public static FlowControllerDescription createFlowControllerDescription( Class<? extends FlowController> flowControllerClass, Object... configurationData) throws ResourceInitializationException { ensureParametersComeInPairs(configurationData); Map<String, ExternalResourceDescription> externalResources = ExternalResourceFactory .extractResourceParameters(configurationData); ConfigurationData cdata = createConfigurationData(configurationData); return createFlowControllerDescription(flowControllerClass, cdata.configurationParameters, cdata.configurationValues, externalResources); } private  FlowControllerFactory(); static FlowControllerDescription createFlowControllerDescription(
          Class<? extends FlowController> flowControllerClass, Object... configurationData); static FlowControllerDescription createFlowControllerDescription(
          Class<? extends FlowController> flowControllerClass,
          ConfigurationParameter[] configurationParameters, Object[] configurationValues); static FlowControllerDescription createFlowControllerDescription(
          Class<? extends FlowController> flowControllerClass,
          ConfigurationParameter[] configurationParameters, Object[] configurationValues,
          Map<String, ExternalResourceDescription> externalResources);  }