org.codehaus.wadi.core.session
Class LazyValue

java.lang.Object
  extended by org.codehaus.wadi.core.session.StandardValue
      extended by org.codehaus.wadi.core.session.DistributableValue
          extended by org.codehaus.wadi.core.session.LazyValue
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, Value

public class LazyValue
extends DistributableValue

Version:
$Revision: 2283 $
Author:
Jules Gosnell
See Also:
Serialized Form

Field Summary
protected static org.apache.commons.logging.Log _log
           
protected  byte[] bytes
           
 
Fields inherited from class org.codehaus.wadi.core.session.DistributableValue
valueHelper, valueHelperRegistry
 
Fields inherited from class org.codehaus.wadi.core.session.StandardValue
value
 
Constructor Summary
LazyValue(ValueHelperRegistry valueHelperRegistry)
           
 
Method Summary
protected  void deserialise()
           
 java.lang.Object getValue()
           
 void readExternal(java.io.ObjectInput oi)
           
protected  byte[] serialise()
           
 java.lang.Object setValue(java.lang.Object newValue)
           
 void writeExternal(java.io.ObjectOutput oo)
           
 
Methods inherited from class org.codehaus.wadi.core.session.DistributableValue
initValueHelper
 
Methods inherited from class org.codehaus.wadi.core.session.StandardValue
equals, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_log

protected static final org.apache.commons.logging.Log _log

bytes

protected transient byte[] bytes
Constructor Detail

LazyValue

public LazyValue(ValueHelperRegistry valueHelperRegistry)
Method Detail

deserialise

protected void deserialise()

serialise

protected byte[] serialise()
                    throws java.io.IOException
Throws:
java.io.IOException

getValue

public java.lang.Object getValue()
Specified by:
getValue in interface Value
Overrides:
getValue in class StandardValue

setValue

public java.lang.Object setValue(java.lang.Object newValue)
Specified by:
setValue in interface Value
Overrides:
setValue in class DistributableValue

writeExternal

public void writeExternal(java.io.ObjectOutput oo)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Overrides:
writeExternal in class DistributableValue
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput oi)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Overrides:
readExternal in class DistributableValue
Throws:
java.io.IOException
java.lang.ClassNotFoundException


Copyright © 2010. All Rights Reserved.