tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From isil...@apache.org
Subject svn commit: r552559 - /incubator/tuscany/java/sca/modules/implementation-notification/src/main/java/org/apache/tuscany/sca/implementation/notification/NotificationImplementationLoader.java
Date Mon, 02 Jul 2007 18:45:54 GMT
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


Mime
View raw message