You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by is...@apache.org on 2007/07/02 20:45:54 UTC
svn commit: r552559 -
/incubator/tuscany/java/sca/modules/implementation-notification/src/main/java/org/apache/tuscany/sca/implementation/notification/NotificationImplementationLoader.java
Author: isilval
Date: Mon Jul 2 11:45:54 2007
New Revision: 552559
URL: http://svn.apache.org/viewvc?view=rev&rev=552559
Log:
Clean up uri setting in resolve
Modified:
incubator/tuscany/java/sca/modules/implementation-notification/src/main/java/org/apache/tuscany/sca/implementation/notification/NotificationImplementationLoader.java
Modified: incubator/tuscany/java/sca/modules/implementation-notification/src/main/java/org/apache/tuscany/sca/implementation/notification/NotificationImplementationLoader.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/implementation-notification/src/main/java/org/apache/tuscany/sca/implementation/notification/NotificationImplementationLoader.java?view=diff&rev=552559&r1=552558&r2=552559
==============================================================================
--- incubator/tuscany/java/sca/modules/implementation-notification/src/main/java/org/apache/tuscany/sca/implementation/notification/NotificationImplementationLoader.java (original)
+++ incubator/tuscany/java/sca/modules/implementation-notification/src/main/java/org/apache/tuscany/sca/implementation/notification/NotificationImplementationLoader.java Mon Jul 2 11:45:54 2007
@@ -83,16 +83,7 @@
}
public void resolve(NotificationImplementationImpl impl, ModelResolver resolver) throws ContributionResolveException {
- String tmpUri = impl.getComponentType().getURI();
-
- ClassLoader cl = Thread.currentThread().getContextClassLoader();
- if (cl.getResource(tmpUri) == null) {
- throw new ContributionResolveException("missing .componentType side file [" + tmpUri + "]");
- }
- String ctUri = cl.getResource(tmpUri).toString();
- ComponentType ct = impl.getComponentType();
- ct.setURI(ctUri);
- ComponentType componentType = resolver.resolveModel(ComponentType.class, ct);
+ ComponentType componentType = resolver.resolveModel(ComponentType.class, impl.getComponentType());
if (componentType.isUnresolved()) {
throw new ContributionResolveException("ComponentType still unresolved");
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org