Meaningless Drivel is fun!*
The moose likes Spring and the fly likes Difference between Joint Point and Point Cut Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Difference between Joint Point and Point Cut" Watch "Difference between Joint Point and Point Cut" New topic
Author

Difference between Joint Point and Point Cut

Satyajeet Kadam
Ranch Hand

Joined: Oct 19, 2006
Posts: 215
Q1) Difference between Joint Point and Point Cut?Please explain with example or real life terminology?
Craig Walls
author
Ranch Hand

Joined: Sep 19, 2003
Posts: 301

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.


Spring in Action - Unleash POJO power in your applications!
Modular Java - Discover the secret weapon to modularity on the Java platform!
XDoclet in Action - Your complete guide to code generation with XDoclet.
Satyajeet Kadam
Ranch Hand

Joined: Oct 19, 2006
Posts: 215
Thanks for your reply Craig.
Muneeswaran Balasubramanian
Ranch Hand

Joined: Mar 19, 2010
Posts: 138
great and crystal clear explanation.Thanks.


Cheers Munees
My Blog
Khuma Chhakchhuak
Ranch Hand

Joined: Nov 30, 2012
Posts: 37

A very good explaination indeed.
Tanzeem Akhtar
Greenhorn

Joined: Sep 11, 2007
Posts: 9

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.


Tanzy..
http://techythought.wordpress.com/
 
 
subject: Difference between Joint Point and Point Cut
 
Similar Threads
Collections - Insertion Point
Basic question on foundational Java
Diff between UTF and Unicode
Basic Question
join point