[jboss-cvs] JBossCache/src/org/jboss/cache/config ...
Brian Stansberry
brian.stansberry at jboss.com
Thu Nov 9 23:38:48 EST 2006
User: bstansberry
Date: 06/11/09 23:38:48
Modified: src/org/jboss/cache/config ConfigurationComponent.java
Log:
Implement Cloneable
Revision Changes Path
1.2 +14 -1 JBossCache/src/org/jboss/cache/config/ConfigurationComponent.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ConfigurationComponent.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/config/ConfigurationComponent.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- ConfigurationComponent.java 23 Oct 2006 05:46:39 -0000 1.1
+++ ConfigurationComponent.java 10 Nov 2006 04:38:48 -0000 1.2
@@ -1,3 +1,9 @@
+/*
+ * JBoss, Home of Professional Open Source
+ *
+ * Distributable under LGPL license.
+ * See terms of license at gnu.org.
+ */
package org.jboss.cache.config;
import java.io.Serializable;
@@ -16,11 +22,11 @@
* that can be changed after the cache is started.
*
* @author <a href="brian.stansberry at jboss.com">Brian Stansberry</a>
- * @version $Revision: 1.1 $
+ * @version $Revision: 1.2 $
*
* @see #testImmutability(String)
*/
-public class ConfigurationComponent implements Serializable
+public class ConfigurationComponent implements Serializable, Cloneable
{
private static final long serialVersionUID = 4879873994727821938L;
@@ -126,6 +132,13 @@
}
}
+ public ConfigurationComponent clone() throws CloneNotSupportedException
+ {
+ ConfigurationComponent c = (ConfigurationComponent) super.clone();
+ c.setTreeCache(null);
+ return c;
+ }
+
/**
* Null-safe equality test.
*
More information about the jboss-cvs-commits
mailing list