Author: ruwan
Date: Sun May 9 17:48:01 2010
New Revision: 942570
URL: http://svn.apache.org/viewvc?rev=942570&view=rev
Log:
Fixing minor issues
Modified:
synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/CloneMediatorFactory.java
Modified:
synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/CloneMediatorFactory.java
URL:
http://svn.apache.org/viewvc/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/CloneMediatorFactory.java?rev=942570&r1=942569&r2=942570&view=diff
==============================================================================
---
synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/CloneMediatorFactory.java
(original)
+++
synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/CloneMediatorFactory.java
Sun May 9 17:48:01 2010
@@ -21,6 +21,7 @@ package org.apache.synapse.config.xml;
import org.apache.axiom.om.OMAttribute;
import org.apache.axiom.om.OMElement;
+import org.apache.axis2.util.JavaUtils;
import org.apache.synapse.Mediator;
import org.apache.synapse.mediators.eip.splitter.CloneMediator;
@@ -28,7 +29,7 @@ import javax.xml.namespace.QName;
import java.util.Iterator;
/**
- * The <clone> element is used to copy messages in Synapse to simillar
messages but with
+ * The <clone> element is used to copy messages in Synapse to similar
messages but with
* different message contexts and mediated using the specified targets
*
* <pre>
@@ -50,9 +51,11 @@ public class CloneMediatorFactory extend
/**
* This will hold the QName of the clone mediator element in the xml
configuration
*/
- private static final QName CLONE_Q = new
QName(XMLConfigConstants.SYNAPSE_NAMESPACE, "clone");
- private static final QName ATT_CONTPAR = new QName("continueParent");
- private static final QName TARGET_Q = new
QName(XMLConfigConstants.SYNAPSE_NAMESPACE, "target");
+ private static final QName CLONE_Q
+ = new QName(XMLConfigConstants.SYNAPSE_NAMESPACE, "clone");
+ private static final QName ATT_CONTINUE_PARENT = new
QName("continueParent");
+ private static final QName TARGET_Q
+ = new QName(XMLConfigConstants.SYNAPSE_NAMESPACE, "target");
/**
* This method implements the createMediator method of the MediatorFactory
interface
@@ -66,10 +69,9 @@ public class CloneMediatorFactory extend
CloneMediator mediator = new CloneMediator();
processAuditStatus(mediator, elem);
- OMAttribute continueParent = elem.getAttribute(ATT_CONTPAR);
+ OMAttribute continueParent = elem.getAttribute(ATT_CONTINUE_PARENT);
if (continueParent != null) {
- mediator.setContinueParent(
-
Boolean.valueOf(continueParent.getAttributeValue()).booleanValue());
+
mediator.setContinueParent(JavaUtils.isTrueExplicitly(continueParent.getAttributeValue()));
}
Iterator targetElements = elem.getChildrenWithName(TARGET_Q);
@@ -83,7 +85,7 @@ public class CloneMediatorFactory extend
/**
* This method will implement the getTagQName method of the
MediatorFactory interface
*
- * @return QName of the clone element in xml configuraiton
+ * @return QName of the clone element in xml configuration
*/
public QName getTagQName() {
return CLONE_Q;