T
Tomer Ben-David
Hi
I like the idea of AOP. Used aspectJ abit and I have these doubts, as
I create the different aspects for example, security, logging etc,
then I find out that:
1. Debug Issues - When I want to debug the application I need to
compile it without the aspects, because the aspectj is chaning the
..class files.
2. Code readability - I want to look at a method and to know what its
doing, I'm not able to, because the aspectj is chaning that method, so
what if someone else is comming and watching the code, instead of
looking at one method, he will need to look at this method and at all
the related aspects.
3. Bug prone issue - aspectj is creating join points using regular
expression like expressions. isnt thta bug / error prone? enough that
something you didnt want to be updated by the aspect is answering the
regular expression you defined to the join point, and boom, the
application will behave in an unwanted manner...
Any comments on my comments?
Thanks...
I like the idea of AOP. Used aspectJ abit and I have these doubts, as
I create the different aspects for example, security, logging etc,
then I find out that:
1. Debug Issues - When I want to debug the application I need to
compile it without the aspects, because the aspectj is chaning the
..class files.
2. Code readability - I want to look at a method and to know what its
doing, I'm not able to, because the aspectj is chaning that method, so
what if someone else is comming and watching the code, instead of
looking at one method, he will need to look at this method and at all
the related aspects.
3. Bug prone issue - aspectj is creating join points using regular
expression like expressions. isnt thta bug / error prone? enough that
something you didnt want to be updated by the aspect is answering the
regular expression you defined to the join point, and boom, the
application will behave in an unwanted manner...
Any comments on my comments?
Thanks...