org.codehaus.wadi.core.session
Interface ValueHelper
- All Superinterfaces:
- java.io.Serializable
public interface ValueHelper
- extends java.io.Serializable
Help with the [de]serialisation of non-Serializable types. Registered
via AttributeWrapper.registerHelper(Class type, AttributeHelper helper).
See the doc on java.io.Serializable for an explanation of the readResolve()
method.
- Version:
- $Revision: 2268 $
- Author:
- Jules Gosnell
Method Summary |
java.io.Serializable |
replace(java.lang.Object output)
Used during the writing out of a non-Serializable. |
replace
java.io.Serializable replace(java.lang.Object output)
- Used during the writing out of a non-Serializable. If its type matches
a registered Helper, that Helper's replace() method will be used to return
a Serializable Object that implements readResolve() to return an instance
with the same value as the original non-Serializable on deserialisation.
- Parameters:
output
- - a non-Serializable, which is about to be serialised
- Returns:
- - a Serializable, which will be serialised in place of the original Object
Copyright © 2010. All Rights Reserved.