is it possible that jboss aop works at runtime ?, because it seems that it cannot add "introductions or mixin" to my java.awt.Component because the toolkit is already loaded ... so if there is a dynamic mode maybe it will be possible ?
We do not allow for instrumentation of system classes, i.e. stuff under
thanks for answer,
Do you know if it is possible with other Aspect toolkit ?
AspectJ does not seem to explicitly prevent you from doing this, but it doesn't seem to work either. But even if you could get this to work, you're going to run into some serious deployment problems. You're messing with the JDK classes, whose byte-code must be reachable by the aspect compiler or weaver, and then deployed on the client side. If you're compiling your aspects, this sounds like it would get messy. There maybe other ways doing what you want however.