Spring.Net Aspect Oriented Programming

2,195 views

Published on

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,195
On SlideShare
0
From Embeds
0
Number of Embeds
6
Actions
Shares
0
Downloads
25
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Spring.Net Aspect Oriented Programming

  1. 1. 10 May, 2009<br />Aspect Oriented Programming - The Spring.NET Approach <br />
  2. 2. AOP key terms I<br />Whereas OO decomposes applications into a hierarchy of objects, AOP decomposes programs into aspects or concerns<br />Computer programming techniques aim to provide better separation of concerns<br />The term separation of concerns is a design principle which promotes the partitioning of a computer program intro distinct entities or features, overlapping as little as possible in functionality<br />A concern is a feature or behavior of the program <br />10 May, 2009<br />Aspect Oriented Programming - The Spring.NET Approach <br />
  3. 3. AOP key terms II<br />The emergence of the Aspect Oriented Programming (AOP) paradigm is driven by the need for better ways of describing and encapsulating concerns in a software application <br />Joinpoint: Point during the execution of a program, such as a method invocation or a particular exception being thrown.<br />Advice: Action taken by the AOP framework at a particular joinpoint. Different types of advice include &quot;around,&quot; &quot;before&quot; and &quot;throws&quot; advice<br />Pointcut: A set of joinpoints specifying when an advice should fire.<br />Target object: Object containing the joinpoint. Also referred to as advised or proxied object<br />10 May, 2009<br />Aspect Oriented Programming - The Spring.NET Approach <br />
  4. 4. Back to the real world<br />Joinpoint = before a method call, after a method call, during the call itself<br />Pointcut = the method call itself<br />Advice = extra actions executed before, in place of or after the method call<br />10 May, 2009<br />Aspect Oriented Programming - The Spring.NET Approach <br />
  5. 5. The problem<br />I want to retrieve some data from a data source.<br />Data retrieval has to be secured. Only specific authenticated users have acces to it.<br />I want to solve this with Sring.NET’s AOP features<br />10 May, 2009<br />Aspect Oriented Programming - The Spring.NET Approach <br />
  6. 6. Demo<br />……………………………………….<br />10 May, 2009<br />Aspect Oriented Programming - The Spring.NET Approach <br />
  7. 7. Resources<br />http://en.wikipedia.org/wiki/Aspect-oriented_programming<br />http://www.springframework.net/doc/reference/html/aop-quickstart.html<br />http://www.codeproject.com/KB/architecture/AOP_UsingSpringPart1.aspx<br />http://www.developer.com/net/csharp/article.php/3795031/Aspect-Oriented-Programming-AOP-with-SpringNet.htm<br />10 May, 2009<br />Aspect Oriented Programming - The Spring.NET Approach <br />
  8. 8. Aspect Oriented Programming - The Spring.NET Approach <br />10 May, 2009<br />

×