synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From asan...@apache.org
Subject svn commit: r603460 - /webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/ClassMediatorFactory.java
Date Wed, 12 Dec 2007 05:15:31 GMT
Author: asankha
Date: Tue Dec 11 21:15:30 2007
New Revision: 603460

URL: http://svn.apache.org/viewvc?rev=603460&view=rev
Log:
pick up first OMElement instead of OMNode which may be whitespace

Modified:
    webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/ClassMediatorFactory.java

Modified: webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/ClassMediatorFactory.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/ClassMediatorFactory.java?rev=603460&r1=603459&r2=603460&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/ClassMediatorFactory.java
(original)
+++ webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/ClassMediatorFactory.java
Tue Dec 11 21:15:30 2007
@@ -81,10 +81,10 @@
                     classMediator.addProperty(propName, value);
                     PropertyHelper.setInstanceProperty(propName, value, m);
                 } else {
-                    OMNode omNode = child.getFirstOMChild();
-                    if (omNode != null) {
-                        classMediator.addProperty(propName, omNode);
-                        PropertyHelper.setInstanceProperty(propName, omNode, m);
+                    OMNode omElt = child.getFirstElement();
+                    if (omElt != null) {
+                        classMediator.addProperty(propName, omElt);
+                        PropertyHelper.setInstanceProperty(propName, omElt, m);
                     } else {
                         handleException("A Class mediator property must specify " +
                             "name and value attributes, or a name and a child XML fragment");



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


Mime
View raw message