[jboss-cvs] JBossCache/src/org/jboss/cache/config ...
Manik Surtani
msurtani at jboss.com
Thu Jul 20 00:49:52 EDT 2006
User: msurtani
Date: 06/07/20 00:49:52
Modified: src/org/jboss/cache/config Configuration.java
Log:
Fixed some broken UTs to use the new xml parsers, cache factories, etc.
Revision Changes Path
1.5 +11 -7 JBossCache/src/org/jboss/cache/config/Configuration.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Configuration.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/config/Configuration.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- Configuration.java 19 Jul 2006 21:34:43 -0000 1.4
+++ Configuration.java 20 Jul 2006 04:49:52 -0000 1.5
@@ -124,10 +124,7 @@
private boolean nodeLockingOptimistic = false;
private String nodeLockingScheme = "PESSIMISTIC";
- /**
- * Converts a list of elements to a Java Groups property string.
- */
- public void setClusterConfig(Element config)
+ String parseClusterConfigXml(Element config)
{
StringBuffer buffer = new StringBuffer();
NodeList stack = config.getChildNodes();
@@ -171,8 +168,15 @@
}
// Remove the trailing ':'
buffer.setLength(buffer.length() - 1);
- clusterConfig = buffer.toString();
- if (log.isDebugEnabled()) log.debug("setting cluster properties from xml to: " + clusterConfig);
+ return buffer.toString();
+ }
+
+ /**
+ * Converts a list of elements to a Java Groups property string.
+ */
+ public void setClusterConfig(Element config)
+ {
+ setClusterConfig(parseClusterConfigXml(config));
}
public boolean isNodeLockingOptimistic()
More information about the jboss-cvs-commits
mailing list