spring.net aspect oriented programming
Post on 30-Nov-2014
2.957 Views
Preview:
DESCRIPTION
TRANSCRIPT
www.orbitone.comAspect Oriented Programming - The Spring.NET Approach
Raas van Gaverestraat 83B-9000 GENT, Belgium E-mail info@orbitone.com Website www.orbitone.com
Tel. +32 9 265 74 20Fax +32 9 265 74 10VAT BE 456.457.353Bank 442-7059001-50 (KBC)
10 May, 2009
Aspect Oriented Programming - The Spring.NET Approach
AOP key terms I
Whereas OO decomposes applications into a hierarchy of objects, AOP decomposes programs into aspects or concerns
Computer programming techniques aim to provide better separation of concerns
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
A concern is a feature or behavior of the program
10 May, 2009
Aspect Oriented Programming - The Spring.NET Approach
AOP key terms II
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
Joinpoint: Point during the execution of a program, such as a method invocation or a particular exception being thrown.
Advice: Action taken by the AOP framework at a particular joinpoint. Different types of advice include "around," "before" and "throws" advice
Pointcut: A set of joinpoints specifying when an advice should fire.
Target object: Object containing the joinpoint. Also referred to as advised or proxied object
10 May, 2009
Aspect Oriented Programming - The Spring.NET Approach
Back to the real world
Joinpoint = before a method call, after a method call, during the call itself
Pointcut = the method call itself
Advice = extra actions executed before, in place of or after the method call
10 May, 2009
Aspect Oriented Programming - The Spring.NET Approach
The problem
I want to retrieve some data from a data source.
Data retrieval has to be secured. Only specific authenticated users have acces to it.
I want to solve this with Sring.NET’s AOP features
10 May, 2009
Aspect Oriented Programming - The Spring.NET Approach
Demo
……………………………………….
10 May, 2009
Aspect Oriented Programming - The Spring.NET Approach
Resources
http://en.wikipedia.org/wiki/Aspect-oriented_programming http://www.springframework.net/doc/reference/html/aop-quickstart.html http://www.codeproject.com/KB/architecture/AOP_UsingSpringPart1.aspx http://www.developer.com/net/csharp/article.php/3795031/Aspect-Oriente
d-Programming-AOP-with-SpringNet.htm
10 May, 2009
Aspect Oriented Programming - The Spring.NET Approach
www.orbitone.com
10 May, 2009
top related