On 11-04-15 4:34 AM, Galder ZamarreƱo wrote:
On Apr 12, 2011, at 7:45 PM, Vladimir Blagojevic wrote:
> Yeah, it would be too strict to require Callable to be Cloneable so I
> would opt out to serialization/deserialization as a clone method.
>
> Galder, do out have a recommended mechanism for this in your marshalers?
Not really. I think you should marshall or clone it before executing operations against
it.
For marshalling data, you just have to see what is done in the lazy deserialization code,
just get hold of the VersionAwareMarshaller and marshall it.
How do I get a hold of
it? I found Marshaller registered in
GlobalComponentRegistry but I could not find API to access it. I used a
regular serialization for cloning and it works ok but I'd definitely
prefer to use Marshaller.