[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [aspectj-users] How to advise already loaded classes using LTW?
|
Hi Alex,
Actually, there are some struts classes I want to advise. But I have 2 issues (related but distinct) with approach #1.
1) I an able to advise the struts classes, but cannot use any of the struts class definitions as they are not exposed to the aspect. That means if I was to access any arguments that are struts classes (parameters or return values) as anything more than mere Object, I can't. I get ClassDefNotFound exceptions.
2) I would like to advise some container (JEE) classes, but they aren't advisable either as they have already been loaded by then time the container loads my aspect jar.
I haven't actually tried using call() instead of execution() yet; it only occurred to me as I was writing my post. But I suspect you are court that it won't make a significant difference, as the calls are made from within the framework itself (which are already loaded).
Is there any way out of this mess? Is there anyway to use something like cflow()? Is there no way to advise an already loaded class?
Thanks
Eric