Package org.apache.wicket.proxy
Interface LazyInitProxyFactory.IWriteReplace
-
- All Known Implementing Classes:
LazyInitProxyFactory.AbstractCGLibInterceptor
,LazyInitProxyFactory.CGLibInterceptor
,ObjenesisCGLibInterceptor
- Enclosing class:
- LazyInitProxyFactory
public static interface LazyInitProxyFactory.IWriteReplace
This interface is used to make the proxy forward writeReplace() call to the handler instead of invoking it on itself. This allows us to serialize the replacement object instead of the proxy itself in case the proxy subclass is deserialized on a VM that does not have it created.- Author:
- Igor Vaynberg (ivaynberg)
- See Also:
LazyInitProxyFactory.ProxyReplacement
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
writeReplace()
write replace method as defined by Serializable
-
-
-
Method Detail
-
writeReplace
Object writeReplace() throws ObjectStreamException
write replace method as defined by Serializable- Returns:
- object that will replace this object in serialized state
- Throws:
ObjectStreamException
-
-