Spring 3 part 6: Spring AOP
This is the 6th part of the Spring 3 Series . AOP Concepts Joinpoint : Joinpoint is the point in an application at which additional logic can be inserted. For example method invocation that is the only Spring support joinpoint type. Advice : Advice is executed at a particular joinpoint in an application. NOTE: no advices for final classes. All the advisors need to implement the Advisor interface. There are two kind of advisors available in the Spring: IntrodcutionAdvisor and PointcutAdvisor. Spring defines 6 difference advices: before(MethodBeforeAdvice), after returning (AfterReturningAdvice), after(AfterAdvice), around (MethodInterceptor), Throws (ThrowsAdvice), and Introduction (IntroductionInterceptor). Pointcuts : A pointcut is a collection of joinpoints that define when advice should be executed. For example, collection of all method invocations in a particular class. Aspect : An aspect is the combination of advice and pointcuts. This combination immerge t...