James Carman wrote: > On Tue, Jul 20, 2010 at 1:51 PM, Matt Benson <gudnabr...@gmail.com> wrote: >> Not quite. I would like to move the RecordedInvocation class to some >> sort of support package where it can be reused beyond InvocationRecorder, >> e.g. in the code I'll be working on. Perhaps a rename of the class too, >> though I'm not sure what makes the most sense. >> > > Yeah, I think all the recording stuff should be in its own module, > commons-proxy-recorder perhaps? I have also been thinking a bit about > how to best create proxies to things that have to be looked up (such > as Spring beans) when they're deserialized. Basically, you need to > use the writeReplace()/readResolve() mechanism so that you don't write > out actual references to the Spring bean. That gave me another idea, > commons-flyweight. Basically, a flyweight would be a stand-in for a > more heavyweight object and it can be used to retrieve it (or > readResolve() it). Here's some code I threw together really quick:
[snip] Interesting idea, but keep the UUID, no need for String conversion ... ;-) - Jörg --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org