tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r549167 - /incubator/tuscany/java/sca/modules/extension-helper/src/main/java/org/apache/tuscany/sca/spi/impl/SCDLProcessor.java
Date Wed, 20 Jun 2007 17:41:19 GMT
Author: antelder
Date: Wed Jun 20 10:41:18 2007
New Revision: 549167

URL: http://svn.apache.org/viewvc?view=rev&rev=549167
Log:
extension helper, Fix pojo impls

Modified:
    incubator/tuscany/java/sca/modules/extension-helper/src/main/java/org/apache/tuscany/sca/spi/impl/SCDLProcessor.java

Modified: incubator/tuscany/java/sca/modules/extension-helper/src/main/java/org/apache/tuscany/sca/spi/impl/SCDLProcessor.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/extension-helper/src/main/java/org/apache/tuscany/sca/spi/impl/SCDLProcessor.java?view=diff&rev=549167&r1=549166&r2=549167
==============================================================================
--- incubator/tuscany/java/sca/modules/extension-helper/src/main/java/org/apache/tuscany/sca/spi/impl/SCDLProcessor.java
(original)
+++ incubator/tuscany/java/sca/modules/extension-helper/src/main/java/org/apache/tuscany/sca/spi/impl/SCDLProcessor.java
Wed Jun 20 10:41:18 2007
@@ -212,7 +212,13 @@
                 if (uri != null && uri.endsWith(".componentType")) {
                     String name = uri.substring(0, uri.lastIndexOf('.'));
                     for (Method m : getGetters()) {
-                        String value = (String) m.invoke(impl, new Object[]{});
+                        Object io;
+                        if (impl instanceof PojoImplementation) {
+                            io = ((PojoImplementation)impl).getUserImpl();
+                        } else {
+                            io = impl;
+                        }
+                        String value = (String) m.invoke(io, new Object[]{});
                         if (value != null && name.endsWith(value.substring(0, value.lastIndexOf('.'))))
{
                             return ct;
                         }



---------------------------------------------------------------------
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