p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/)
-   Spring (http://p2p.wrox.com/spring-202/)
-   -   AOP concepts (http://p2p.wrox.com/spring/81824-aop-concepts.html)

pradeepm8482 December 7th, 2010 01:26 AM

AOP concepts
 
Can any one explain what is an advice, pointcut joinpointcut, aspect, etc.. with real time example

chance82 April 12th, 2011 06:54 AM

Advice - specifies what to do at a join point. In the case of Spring, this is the additional behavior that Spring will inject around a method invocation. It is most often defined in a method interceptor, which will be invoked as part of an interceptor chain wrapping the method invocation.


The key to AOP is providing a different way of thinking about application structure.

This structural thinking is captured in the form of pointcuts.
Pointcuts are predicates determining which joinpoints a piece of advice should apply to. It's more intuitive although not entirely accurate to think of a pointcut as a set of joinpoints: for example, a set of methods that might be targeted by an advice.

These two books from Wrox, are a good starting point - it's hard to understand these terms and/or their logic without understanding the Spring approach.

Professional Java Development with the Spring Framework
Expert One on One J2EE Development without EJB

alexa007 September 28th, 2011 08:18 AM

Object oriented programming has become mainstream over the last years, having almost completely replaced the procedural approach. One of the biggest advantages of object orientation is that a software system can be seen as being built of a collection of discrete classes. Each of these classes has a well defined task, its responsibilities are clearly defined.
_______________________
Business Intelligence Ireland


All times are GMT -4. The time now is 08:20 PM.

Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
2013 John Wiley & Sons, Inc.