Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] newbie question on how to use AOP

Hi,

 

Just started going through AspectJ in Action..

It seems to me that right way to use aspects is to write code in that way so the main line of execution can compile and run in pure java even if no aspects are compiled/created.

In that case code will only lack these characteristics, but will still execute perfectly well.

For example, this means that if we use aspects for logging, pure java code should execute as well in both cases, with and without aspects. Of course, logging will be performed only in case where aspects are used…

 

Is this observation obvious, or am I missing something?

 

Thanks,

 

Danijel

_______________________________________________ aspectj-users mailing list aspectj-users@xxxxxxxxxxx http://dev.eclipse.org/mailman/listinfo/aspectj-users

Back to the top