AspectJ Cross-cutting concern : parallel concern throughout the modules Joint point : a point in the execution of a program Pointcut : expression that selects one or more join points Advice : code to be executed at a join point selected by a pointcut Aspect ( Pointcut + Advice) Weaving : Java class bytecode + Aspect class bytecode
AOP So why AOP? Encapsulate cross cutting concern Better maintenance Spring AOP provide schema based or annotation based AOP.
AOP in .NET http://www.springframework.net/ http ://www.sharpcrafters.com/aop.net
Demo Flight Center Apache Shiro Open source security framework Blog mjtoolbox.wordpress.com