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/02/13 02:11:39 UTC

svn commit: r506789 - /incubator/tuscany/branches/sca-java-integration/sca/kernel/core/src/main/java/org/apache/tuscany/core/implementation/composite/AbstractCompositeContext.java

Author: jsdelfino
Date: Mon Feb 12 17:11:38 2007
New Revision: 506789

URL: http://svn.apache.org/viewvc?view=rev&rev=506789
Log:
Fixed locateService to use simple name instead of fully qualified class name

Modified:
    incubator/tuscany/branches/sca-java-integration/sca/kernel/core/src/main/java/org/apache/tuscany/core/implementation/composite/AbstractCompositeContext.java

Modified: incubator/tuscany/branches/sca-java-integration/sca/kernel/core/src/main/java/org/apache/tuscany/core/implementation/composite/AbstractCompositeContext.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/sca/kernel/core/src/main/java/org/apache/tuscany/core/implementation/composite/AbstractCompositeContext.java?view=diff&rev=506789&r1=506788&r2=506789
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/sca/kernel/core/src/main/java/org/apache/tuscany/core/implementation/composite/AbstractCompositeContext.java (original)
+++ incubator/tuscany/branches/sca-java-integration/sca/kernel/core/src/main/java/org/apache/tuscany/core/implementation/composite/AbstractCompositeContext.java Mon Feb 12 17:11:38 2007
@@ -59,7 +59,7 @@
     public <T> T locateService(Class<T> serviceInterface, String serviceName) throws ServiceRuntimeException {
         QualifiedName qName = new QualifiedName(serviceName);
         if (qName.getPortName() == null) {
-            String name = serviceInterface.getName();
+            String name = serviceInterface.getSimpleName();
             qName = new QualifiedName(qName.getPartName(), name);
         }
         SCAObject child = composite.getChild(qName.getPartName());



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org