org.codehaus.wadi
Interface ValueHelper
- All Superinterfaces:
- Serializable
- public interface ValueHelper
- extends 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: 1139 $
- Author:
- Jules Gosnell
replace
public Serializable replace(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 © 2004-2008 Core Developers Network Ltd.. All Rights Reserved.