On Mon, May 27, 2013 at 9:45 PM, Justin Deoliveira <[email protected]>wrote:

> Sorry, i meant to reply, not sure what happened.
>
> Proceed as you see fit but i'll suggest one more thing. We could use cglib
> to proxy for the classes. Afaik cglib is already a runtime dependency for
> GeoServer as its required by wicket, and i think spring. The proxy
> interface (MethodInterceptor) is of course different in cglib but it would
> be easy enough to implement one that backed on to InvocationHandler.
>

Looked into it, it would work for the simple beans that we have now in the
map, but it is going to break if anything has final methods, since CGLIB
works by creating a subclass that overrides the parent methods. The cloning
library does not seem to be affected by these issues.

Cheers
Andrea


-- 
==
GeoServer training in Milan, 6th & 7th June 2013!  Visit
http://geoserver.geo-solutions.it for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to