reflectedConfigurationData.configurationParameters,
reflectedConfigurationData.configurationValues);
ResourceCreationSpecifierFactory.setConfigurationParameters(meta,
cfg.configurationParameters, cfg.configurationValues);
ConfigurableDataResourceSpecifier_impl spec1 = new ConfigurableDataResourceSpecifier_impl();
spec1.setUrl("");
spec1.setMetaData(meta);
spec = spec1;
} else {
List<Parameter> params = new ArrayList<Parameter>();
if (aParams != null) {
for (int i = 0; i < aParams.length / 2; i++) {
if (ExternalResourceFactory.getExternalResourceParameterType(aParams[i * 2 + 1]) != ResourceValueType.NO_RESOURCE) {
continue;
}
Parameter param = new Parameter_impl();
param.setName((String) aParams[i * 2]);
param.setValue((String) aParams[i * 2 + 1]);
params.add(param);
}
}
CustomResourceSpecifier spec1 = UIMAFramework.getResourceSpecifierFactory()
.createCustomResourceSpecifier();
spec1.setResourceClassName(aInterface.getName());
spec1.setParameters(params.toArray(new Parameter[params.size()]));
spec = spec1;
}
ExtendedExternalResourceDescription_impl extRes = new ExtendedExternalResourceDescription_impl();
extRes.setName(aName);