I have a little weird requirement.I guess.
I'd like to use a custom Proxy I created to decorate all object that implements an specific interface, but I need this to be transparent to the code itself. Something that could be included in the build process would be perfect.
I was thinking in AOP but didn't see such capabilities, I'm looking for ideas, even the crazy ones. I'm thinking on changing the source code after compilation and recompiling it replacing at least the direct calls to new(I guess this would not get object creation by reflection but would be a nice start) but I can think of a million of problems that this could bring, breaking my main objective that is make such instrumentation as transparent as possible.
Did some of you have some experience on such unusual thing ?
Regards