S
Stanimir Stamenkov
The Dynamic Proxy API [1] allows one to create proxy classes
implementing number of specified interfaces. I've wondered if it is
possible and how to create such a proxy class for a specified class
and not interface. I've found Javassit should provide such means,
but haven't really tried it yet:
http://en.wikipedia.org/wiki/Javassist
I basically want to create a proxy augmenting an existing object
with additional interface. Is the Javassist library the right tool
for doing this? Are there other similar tools?
[1]
http://download.oracle.com/javase/6/docs/technotes/guides/reflection/proxy.html
implementing number of specified interfaces. I've wondered if it is
possible and how to create such a proxy class for a specified class
and not interface. I've found Javassit should provide such means,
but haven't really tried it yet:
http://en.wikipedia.org/wiki/Javassist
I basically want to create a proxy augmenting an existing object
with additional interface. Is the Javassist library the right tool
for doing this? Are there other similar tools?
[1]
http://download.oracle.com/javase/6/docs/technotes/guides/reflection/proxy.html