Saturday, August 16, 2014

AOP in Spring

Aspects have a purpose a job they are meant to do. In AOP terms, the job of an Aspect is called advice.

Advice defines what and when of an aspect.In addition to describing the job that an aspect will perform, advice address the question of when to perform a job.

Spring aspects can work with five kinds of advice:

Before:
After : 
After -Returning:
After -Throwing:
Around:

Join Points : In your application there are thousands of opportunities for advice to be applied. These opportunities are known as join points.
    A join point is a point in  execution of the application where an aspect can be plugged in. This point could be a method being called , an exception being thrown , or even a field being modified.

PointCuts :  PointCuts help narrow down the joint points advised by Aspect.

The key concept you should take from this is that point cuts define which join points get advised.


Sunday, June 1, 2014

Always be in group of 5 to 8 AM . These 3 hrs are very useful

Always be in group of 5 to 8 AM . These 3 hrs are very useful