Update of /var/cvs/src/org/mmbase/cache
In directory james.mmbase.org:/tmp/cvs-serv5866

Modified Files:
        ChainedReleaseStrategy.java 
Log Message:
also allowing for specifying the class per attribute (thiw would leave the body 
free for possible further configuration)


See also: http://cvs.mmbase.org/viewcvs/src/org/mmbase/cache


Index: ChainedReleaseStrategy.java
===================================================================
RCS file: /var/cvs/src/org/mmbase/cache/ChainedReleaseStrategy.java,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -b -r1.24 -r1.25
--- ChainedReleaseStrategy.java 19 Mar 2008 16:03:00 -0000      1.24
+++ ChainedReleaseStrategy.java 19 Mar 2008 16:13:49 -0000      1.25
@@ -28,7 +28,7 @@
  *
  * @since MMBase-1.8
  * @author Ernst Bunders
- * @version $Id: ChainedReleaseStrategy.java,v 1.24 2008/03/19 16:03:00 
michiel Exp $
+ * @version $Id: ChainedReleaseStrategy.java,v 1.25 2008/03/19 16:13:49 
michiel Exp $
  */
 public class ChainedReleaseStrategy extends ReleaseStrategy implements 
Iterable<ReleaseStrategy> {
 
@@ -58,7 +58,10 @@
                 Element childElement = (Element) childNodes.item(k);
                 if ("strategy".equals(childElement.getLocalName())) {
                     try {
-                        String strategyClassName = 
DocumentReader.getNodeTextValue(childElement);
+                        String strategyClassName = 
childElement.getAttribute("class");
+                        if ("".equals(strategyClassName)) {
+                            strategyClassName = 
DocumentReader.getNodeTextValue(childElement);
+                        }
                         ReleaseStrategy releaseStrategy = 
getStrategyInstance(strategyClassName);
                         log.debug("still there after trying to get a strategy 
instance... Instance is " + releaseStrategy==null ? "null" : "not null");
                         //check if we got something
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to