org.codehaus.wadi.impl
Class DistributableValue
java.lang.Object
org.codehaus.wadi.impl.StandardValue
org.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_helper
protected ValueHelper _helper
DistributableValue
public DistributableValue(DistributableValueConfig config)
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.