File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Difference between Joint Point and Point Cut

 
Satyajeet Kadam
Ranch Hand
Posts: 224
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Q1) Difference between Joint Point and Point Cut?Please explain with example or real life terminology?
 
Craig Walls
author
Ranch Hand
Posts: 363
8
  • 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

When you go out to a restaurant, you look at a menu and see several options to choose from. You can order one or more of any of the items on the menu. But until you actually order them, they are just "opportunities to dine". Once you place the order and the waiter brings it to your table, it's a meal.

Join points are the options on the menu and pointcuts are the items you select. A joinpoint is an opportunity within code for you to apply an aspect...just an opportunity. Once you take that opportunity and select one or more joinpoints and apply an aspect to them, you've got a pointcut.

 
Satyajeet Kadam
Ranch Hand
Posts: 224
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply Craig.
 
Muneeswaran Balasubramanian
Ranch Hand
Posts: 138
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
great and crystal clear explanation.Thanks.
 
Khuma Chhakchhuak
Ranch Hand
Posts: 37
Eclipse IDE Java Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A very good explaination indeed.
 
Tanzeem Akhtar
Greenhorn
Posts: 9
Eclipse IDE Java Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I perceive joint points and point cut as follows--

Assume during the program execution, control meets a condition--

if (condition) {
//Conditional tasks to execute
}

Here condition can be observed as Join Points, and the attribute "if" as point cut.
The "Conditional tasks to execute" as advice.
As we can use multiple condition, so join points can have more than one condition.

Hope this will help to memorize the diffidence between joint points and point cut.

Thanks,
Tanzy.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic