Well some byte code manuplation apis are availble like Javassist.
But, I am still interested why AOP will not work in your case.
Have you really read the concept? Don't mind its just I am big fan of spring AOP.
Hi, actually I don't believe IntroductionInterceptor can change class dynamically. I think it can intercept and add additional features that the original Java class doesn't have. I posted a question regarding this. Check it out and see if it's your case or not:
Shashank Ag wrote:Well some byte code manuplation apis are availble like Javassist.
But, I am still interested why AOP will not work in your case.
Have you really read the concept? Don't mind its just I am big fan of spring AOP.
well, javassist can't change class behavior after they are created, but that's exactly what I need.
These introduction methods are added to the code via AOP/Proxies and are created at runtime, not a special compile time thing to do. Spring AOP creates DynamicProxies at runtime.