Author: manik.surtani(a)jboss.com
Date: 2008-01-14 09:30:23 -0500 (Mon, 14 Jan 2008)
New Revision: 5121
Modified:
core/trunk/src/main/java/org/jboss/cache/config/Configuration.java
Log:
Lazy deserialization configuration option
Modified: core/trunk/src/main/java/org/jboss/cache/config/Configuration.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/config/Configuration.java 2008-01-14 10:42:35
UTC (rev 5120)
+++ core/trunk/src/main/java/org/jboss/cache/config/Configuration.java 2008-01-14 14:30:23
UTC (rev 5121)
@@ -186,6 +186,7 @@
private transient RuntimeConfig runtimeConfig;
private String marshallerClass;
private ShutdownHookBehavior shutdownHookBehavior = ShutdownHookBehavior.DEFAULT;
+ private boolean useLazyDeserialization = true;
//
------------------------------------------------------------------------------------------------------------
// SETTERS - MAKE SURE ALL SETTERS PERFORM testImmutability()!!!
@@ -476,6 +477,11 @@
}
}
+ public void setUseLazyDeserialization(boolean useLazyDeserialization)
+ {
+ this.useLazyDeserialization = useLazyDeserialization;
+ }
+
//
------------------------------------------------------------------------------------------------------------
// GETTERS
//
------------------------------------------------------------------------------------------------------------
@@ -617,6 +623,11 @@
return muxStackName;
}
+ public boolean isUseLazyDeserialization()
+ {
+ return useLazyDeserialization;
+ }
+
public synchronized RuntimeConfig getRuntimeConfig()
{
if (runtimeConfig == null)
Show replies by date