[jboss-cvs] JBossCache/src/org/jboss/cache/config ...
Manik Surtani
msurtani at jboss.com
Tue Jan 30 16:34:25 EST 2007
User: msurtani
Date: 07/01/30 16:34:25
Modified: src/org/jboss/cache/config Configuration.java
Log:
JBCACHE-955
Revision Changes Path
1.39 +7 -2 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.38
retrieving revision 1.39
diff -u -b -r1.38 -r1.39
--- Configuration.java 29 Jan 2007 22:42:17 -0000 1.38
+++ Configuration.java 30 Jan 2007 21:34:25 -0000 1.39
@@ -89,7 +89,8 @@
private String serviceName;
private long initialStateRetrievalTimeout = 10000;
private IsolationLevel isolationLevel = IsolationLevel.REPEATABLE_READ;
- private boolean lockParentForChildInsertRemove = true;
+ @Dynamic
+ private boolean lockParentForChildInsertRemove = false;
@Dynamic
private EvictionConfig evictionConfig = null;
private boolean useRegionBasedMarshalling = false;
@@ -374,6 +375,7 @@
*/
public void setLockParentForChildInsertRemove(boolean lockParentForChildInsertRemove)
{
+ testImmutability("lockParentForChildInsertRemove");
this.lockParentForChildInsertRemove = lockParentForChildInsertRemove;
}
@@ -497,7 +499,7 @@
* <p/>
* The default value is <code>true</code>
*/
- public boolean getLockParentForChildInsertRemove()
+ public boolean isLockParentForChildInsertRemove()
{
return lockParentForChildInsertRemove;
}
@@ -657,6 +659,8 @@
if (!safeEquals(marshallerClass, that.marshallerClass)) return false;
+ if (lockParentForChildInsertRemove != that.lockParentForChildInsertRemove) return false;
+
return true;
}
@@ -690,6 +694,7 @@
result = 29 * result + (muxStackName != null ? muxStackName.hashCode() : 0);
result = 29 * result + (runtimeConfig != null ? runtimeConfig.hashCode() : 0);
result = 29 * result + (marshallerClass != null ? marshallerClass.hashCode() : 0);
+ result = 29 * result + (lockParentForChildInsertRemove ? 1 : 0);
return result;
}
More information about the jboss-cvs-commits
mailing list