Author: vhalbert(a)redhat.com
Date: 2009-04-12 17:32:20 -0400 (Sun, 12 Apr 2009)
New Revision: 761
Modified:
branches/remove_psc/common-internal/src/main/java/com/metamatrix/common/config/xml/XMLConfigurationImportExportUtility.java
Log:
Teiid 323 - refactured, removing duplicate methods
Modified:
branches/remove_psc/common-internal/src/main/java/com/metamatrix/common/config/xml/XMLConfigurationImportExportUtility.java
===================================================================
---
branches/remove_psc/common-internal/src/main/java/com/metamatrix/common/config/xml/XMLConfigurationImportExportUtility.java 2009-04-12
21:30:53 UTC (rev 760)
+++
branches/remove_psc/common-internal/src/main/java/com/metamatrix/common/config/xml/XMLConfigurationImportExportUtility.java 2009-04-12
21:32:20 UTC (rev 761)
@@ -653,39 +653,8 @@
ConfigurationImportExport util = new ConfigurationImportExport();
util.exportConnectorBindings(stream, bindings, types, props);
}
-
-
- public ComponentType importConnector(InputStream stream, ConfigurationObjectEditor
editor, String newName)throws IOException, InvalidConfigurationElementException {
- // no special implementation changes needed to import Connectors
- return importComponentType(stream, editor, newName);
- }
-// public static ConnectorBinding importConnectorBinding(String fileName,
ConfigurationObjectEditor editor, String newName) throws IOException,
ConfigObjectsNotResolvableException, InvalidConfigurationElementException {
-// // vah 7/22/04 bindings didnt change when the import/exporter utility was
changed
-// // therefore, it doesn't matter which importer is used
-// ConfigurationImportExport util = new ConfigurationImportExport();
-//
-// File f = new File(fileName);
-//
-// if (!f.exists()) {
-// throw new
IOException(CommonPlugin.Util.getString(ErrorMessageKeys.CONFIG_ERR_0009, fileName));
-// }
-// FileInputStream fis = null;
-// try {
-// fis = new FileInputStream(f);
-//
-// ConnectorBinding cb = util.importConnectorBinding(fis, editor, newName);
-//
-//
-// return cb;
-// } finally {
-// if (fis != null) {
-// fis.close();
-// }
-// }
-//
-// }
public ConnectorBinding importConnectorBinding(InputStream stream,
ConfigurationObjectEditor editor, String newName)throws IOException,
ConfigObjectsNotResolvableException, InvalidConfigurationElementException {
ConfigurationImportExport util = new ConfigurationImportExport();
Show replies by date