[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/factories ...
Manik Surtani
msurtani at jboss.com
Wed Jan 24 11:33:58 EST 2007
User: msurtani
Date: 07/01/24 11:33:58
Modified: tests/functional/org/jboss/cache/factories
UnitTestCacheFactory.java
Log:
Refactored to remove legacy EvictionPolicyClass element
Revision Changes Path
1.2 +2 -6 JBossCache/tests/functional/org/jboss/cache/factories/UnitTestCacheFactory.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: UnitTestCacheFactory.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/factories/UnitTestCacheFactory.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- UnitTestCacheFactory.java 11 Jan 2007 13:49:06 -0000 1.1
+++ UnitTestCacheFactory.java 24 Jan 2007 16:33:58 -0000 1.2
@@ -136,12 +136,8 @@
ParsedAttributes attributes = extractAttributes(mbeanElement);
- // Special handling for the old separate property for
- // eviction policy -- just cache it and use with the eviction XML
- String defaultEvictionClass = (String) attributes.stringAttribs.remove("EvictionPolicyClass");
-
// Deal with rename of the old property that controlled MBean registration
- String keepStats = (String) attributes.stringAttribs.remove("UseMbean");
+ String keepStats = attributes.stringAttribs.remove("UseMbean");
if (keepStats != null && attributes.stringAttribs.get("ExposeManagementStatistics") == null)
{
attributes.stringAttribs.put("ExposeManagementStatistics", keepStats);
@@ -150,7 +146,7 @@
Configuration c = new Configuration();
setValues(c, attributes.stringAttribs, false);
// Special handling for XML elements -- we hard code the parsing
- setXmlValues(c, attributes.xmlAttribs, defaultEvictionClass);
+ setXmlValues(c, attributes.xmlAttribs);
Element list = (Element) root.getElementsByTagName("protocol_stacks").item(0);
NodeList stacks = list.getElementsByTagName("stack");
More information about the jboss-cvs-commits
mailing list