Slide 9
Slide 9 text
AOP is Traits are very powerful but very dangerous.
“If all you have is a hammer, everything looks like a nail”
• Use cautiously
• Only
for
pure
cross-‐cu/ng
concerns
• Don’t
be
afraid
to
move
aspects
traits
back
to
business
logic
if
it
becomes
apparent
that
it
belongs
there
• For
uber-‐cross-‐cu/ng-‐concerns
(like
global
session
management)
you
can
use
Applica,on.registerAc,vityCallbacks()
Conclusions