Author: rareddy
Date: 2010-03-22 17:50:36 -0400 (Mon, 22 Mar 2010)
New Revision: 1988
Added:
trunk/client/src/test/java/org/teiid/client/plan/
Removed:
trunk/client/src/test/java/org/teiid/jdbc/plan/
Modified:
trunk/client/src/main/java/org/teiid/adminapi/Admin.java
trunk/client/src/test/java/org/teiid/client/plan/TestTextOutputVisitor.java
trunk/client/src/test/java/org/teiid/client/plan/TestXMLOutputVisitor.java
trunk/jboss-integration/src/main/java/org/teiid/adminapi/jboss/Admin.java
Log:
TEIID-910: Modifing the Admin API to return "connector binding" for
"addConnectorBinding" call. This is request from the tooling team.
Modified: trunk/client/src/main/java/org/teiid/adminapi/Admin.java
===================================================================
--- trunk/client/src/main/java/org/teiid/adminapi/Admin.java 2010-03-22 21:05:23 UTC (rev
1987)
+++ trunk/client/src/main/java/org/teiid/adminapi/Admin.java 2010-03-22 21:50:36 UTC (rev
1988)
@@ -92,7 +92,7 @@
* @throws AdminException if there's a system error.
*/
- void addConnectorBinding(String deployedName, String typeName, Properties properties)
throws AdminException;
+ ConnectorBinding addConnectorBinding(String deployedName, String typeName, Properties
properties) throws AdminException;
/**
* Delete the {@link ConnectorBinding} from the Configuration
Copied: trunk/client/src/test/java/org/teiid/client/plan (from rev 1987,
trunk/client/src/test/java/org/teiid/jdbc/plan)
Modified: trunk/client/src/test/java/org/teiid/client/plan/TestTextOutputVisitor.java
===================================================================
--- trunk/client/src/test/java/org/teiid/jdbc/plan/TestTextOutputVisitor.java 2010-03-22
21:05:23 UTC (rev 1987)
+++ trunk/client/src/test/java/org/teiid/client/plan/TestTextOutputVisitor.java 2010-03-22
21:50:36 UTC (rev 1988)
@@ -20,7 +20,7 @@
* 02110-1301 USA.
*/
-package org.teiid.jdbc.plan;
+package org.teiid.client.plan;
import java.util.ArrayList;
import java.util.Arrays;
Modified: trunk/client/src/test/java/org/teiid/client/plan/TestXMLOutputVisitor.java
===================================================================
--- trunk/client/src/test/java/org/teiid/jdbc/plan/TestXMLOutputVisitor.java 2010-03-22
21:05:23 UTC (rev 1987)
+++ trunk/client/src/test/java/org/teiid/client/plan/TestXMLOutputVisitor.java 2010-03-22
21:50:36 UTC (rev 1988)
@@ -20,7 +20,7 @@
* 02110-1301 USA.
*/
-package org.teiid.jdbc.plan;
+package org.teiid.client.plan;
import org.teiid.client.plan.DefaultDisplayHelper;
import org.teiid.client.plan.XMLOutputVisitor;
Modified: trunk/jboss-integration/src/main/java/org/teiid/adminapi/jboss/Admin.java
===================================================================
--- trunk/jboss-integration/src/main/java/org/teiid/adminapi/jboss/Admin.java 2010-03-22
21:05:23 UTC (rev 1987)
+++ trunk/jboss-integration/src/main/java/org/teiid/adminapi/jboss/Admin.java 2010-03-22
21:50:36 UTC (rev 1988)
@@ -275,12 +275,14 @@
}
@Override
- public void addConnectorBinding(String deploymentName, String typeName, Properties
properties) throws AdminException {
+ public ConnectorBinding addConnectorBinding(String deploymentName, String typeName,
Properties properties) throws AdminException {
if (getConnectorBinding(deploymentName) != null) {
throw new
AdminProcessingException(IntegrationPlugin.Util.getString("connector_binding_exists",deploymentName));
//$NON-NLS-1$;
}
properties.setProperty("connection-definition", Connector.class.getName());
//$NON-NLS-1$
addConnectionfactory(deploymentName, typeName, properties);
+
+ return getConnectorBinding(deploymentName);
}
@Override
Show replies by date