I'm implementing a JavaBean Proxy. This java bean proxy will intercept all "set" methods and fire a propertyChangeEvent (
http://cglib.sourceforge.net/xref/samples/Beans.html). I will also create a proxy for the list (new ProxyList(Object bean, new ArrayList())) that intercept the add/remove methods and call fireIndexedPropertyChangeMethdos. The problem of doing this is that, after persisting the collection the Hibernate replaces it by its own collection implementation.
My Question is: May I proxy the Hibernate Collection ? How?
Ex: I'm proxing the Bean by implementing a Intercept (method instantiate).