org.codehaus.wadi.impl
Class DistributableValue

java.lang.Object
  extended byorg.codehaus.wadi.impl.StandardValue
      extended byorg.codehaus.wadi.impl.DistributableValue
All Implemented Interfaces:
SerializableContent, Value
Direct Known Subclasses:
LazyValue

public class DistributableValue
extends StandardValue
implements SerializableContent

An attribute Value that supports the notification of HttpSessionActivationListeners at the correct times as well as the substition of non-Serializable content with the results of pluggable Helpers. This allows us to deal with the special cases mentioned in J2EE.6.4 in a non app-server specific manner. In other words, we can deal with attributes that are non-serialisable, provided that the application writer provides a mechanism for their persistance. Types such as EJBHome, EJBObject etc. are likely to be placed into distributable Sessions. It does not expect to be accessed after serialisation, until a fresh deserialisation has occurred.

Version:
$Revision: 1181 $
Author:
Jules Gosnell

Field Summary
protected  ValueHelper _helper
           
 
Fields inherited from class org.codehaus.wadi.impl.StandardValue
_config, _value
 
Constructor Summary
DistributableValue(DistributableValueConfig config)
           
 
Method Summary
 void readContent(ObjectInput oi)
           
 Object setValue(Object newValue)
           
 void writeContent(ObjectOutput oo)
           
 
Methods inherited from class org.codehaus.wadi.impl.StandardValue
getValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_helper

protected ValueHelper _helper
Constructor Detail

DistributableValue

public DistributableValue(DistributableValueConfig config)
Method Detail

setValue

public Object setValue(Object newValue)
Specified by:
setValue in interface Value
Overrides:
setValue in class StandardValue

writeContent

public void writeContent(ObjectOutput oo)
                  throws IOException
Specified by:
writeContent in interface SerializableContent
Throws:
IOException

readContent

public void readContent(ObjectInput oi)
                 throws IOException,
                        ClassNotFoundException
Specified by:
readContent in interface SerializableContent
Throws:
IOException
ClassNotFoundException


Copyright © 2004-2008 Core Developers Network Ltd.. All Rights Reserved.