You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by js...@apache.org on 2007/05/07 12:41:17 UTC
svn commit: r535840 -
/incubator/tuscany/java/sca/modules/core/src/main/java/org/apache/tuscany/core/component/ComponentContextImpl.java
Author: jsdelfino
Date: Mon May 7 03:41:10 2007
New Revision: 535840
URL: http://svn.apache.org/viewvc?view=rev&rev=535840
Log:
Removed dependency on TuscanyRuntimeException.
Modified:
incubator/tuscany/java/sca/modules/core/src/main/java/org/apache/tuscany/core/component/ComponentContextImpl.java
Modified: incubator/tuscany/java/sca/modules/core/src/main/java/org/apache/tuscany/core/component/ComponentContextImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/core/src/main/java/org/apache/tuscany/core/component/ComponentContextImpl.java?view=diff&rev=535840&r1=535839&r2=535840
==============================================================================
--- incubator/tuscany/java/sca/modules/core/src/main/java/org/apache/tuscany/core/component/ComponentContextImpl.java (original)
+++ incubator/tuscany/java/sca/modules/core/src/main/java/org/apache/tuscany/core/component/ComponentContextImpl.java Mon May 7 03:41:10 2007
@@ -18,7 +18,6 @@
*/
package org.apache.tuscany.core.component;
-import org.apache.tuscany.spi.TuscanyRuntimeException;
import org.osoa.sca.CallableReference;
import org.osoa.sca.ComponentContext;
import org.osoa.sca.RequestContext;
@@ -40,7 +39,7 @@
public String getURI() {
try {
return component.getUri().toString();
- } catch (TuscanyRuntimeException e) {
+ } catch (RuntimeException e) {
throw new ServiceRuntimeException(e.getMessage(), e);
}
}
@@ -48,7 +47,7 @@
public <B, R extends CallableReference<B>> R cast(B target) throws IllegalArgumentException {
try {
return (R) component.cast(target);
- } catch (TuscanyRuntimeException e) {
+ } catch (RuntimeException e) {
throw new ServiceRuntimeException(e.getMessage(), e);
}
}
@@ -56,7 +55,7 @@
public <B> B getService(Class<B> businessInterface, String referenceName) {
try {
return component.getService(businessInterface, referenceName);
- } catch (TuscanyRuntimeException e) {
+ } catch (RuntimeException e) {
throw new ServiceRuntimeException(e.getMessage(), e);
}
}
@@ -64,7 +63,7 @@
public <B> ServiceReference<B> getServiceReference(Class<B> businessInterface, String referenceName) {
try {
return component.getServiceReference(businessInterface, referenceName);
- } catch (TuscanyRuntimeException e) {
+ } catch (RuntimeException e) {
throw new ServiceRuntimeException(e.getMessage(), e);
}
}
@@ -72,7 +71,7 @@
public <B> B getProperty(Class<B> type, String propertyName) {
try {
return component.getProperty(type, propertyName);
- } catch (TuscanyRuntimeException e) {
+ } catch (RuntimeException e) {
throw new ServiceRuntimeException(e.getMessage(), e);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org