commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Schaible <>
Subject Re: [proxy] 2.0 WAS Re: a bit of commons-style code in search of a home
Date Tue, 20 Jul 2010 20:37:44 GMT
James Carman wrote:

> On Tue, Jul 20, 2010 at 1:51 PM, Matt Benson <> 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:


Interesting idea, but keep the UUID, no need for String conversion ... ;-)

- Jörg

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message