Pages

Tuesday, January 31, 2012

Spring AOP

Introduction to AOP  
This video provides a brief introduction to Aspect Oriented Programming concepts.
Setting Up AOP Dependencies  
In this tutorial, we'll add the additional dependencies required for Spring AOP and we'll configure our project's class path with these dependencies.

The links for the dependencies are:
AspectJ: http://www.eclipse.org/aspectj/downloads.php
AOP Alliance: http://aopalliance.sourceforge.net/
CGILIB: http://cglib.sourceforge.net/
Spring 3 ASM: http://asm.ow2.org/
Writing Our First Aspect Part 1  
In this first part of the tutorial, we'll create a Spring project that forms the basis for our Aspect. This is a good refresher of some of the core Spring concepts, and it also give us an opportunity to introduce a service layer in our code that we'll build on in the subsequent tutorials.
Writing Our First Aspect Part 2  
Now that we have a basic Spring application, we'll implement the Logging aspect. We'll learn how to create a new Aspect using annotations and configure an advice to run before a getter method.
Pointcuts and Wildcard Expressions  
We'll now learn what a Pointcut is, the Pointcut annotation and how to apply advice to multiple pointcuts.
A Few More Pointcut Expressions  
In this tutorial, we'll learn about a few other Pointcut expressions that can be used to advice different methods.
JoinPoints and Advice Arguments  
We'll now learn about join points, and how we can use arguments in the advice methods to get information about join points.
After Advice Types  
We'll learn about the After Advice types: After (finally), AfterReturning and AfterThrowing.
Around Advice Type  
This tutorial covers the Around advice type. We'll learn how to use it, and we'll also look at some of the unique and powerful features that are specific to this advice type.
Naming Conventions and Custom Advice Annotations  
In this video, I share some thoughts on naming conventions, and how it helps in the case of writing aspects in Spring. We will also understand how to write our own custom annotations to apply advice to methods.
AOP XML configuration  
Here, We'll learn how to configure aspects, advice and pointcuts using the traditional XML way.
Understanding AOP Proxies  
In this video, we go where no Spring AOP tutorial has gone before! We'll understand how Spring AOP works and how it uses proxy classes to apply advice. And we'll do this by implementing our own simple factory service. The way Spring AOP works is much more complicated, but this simple implementation should give us a solid understanding of proxy objects and clarify the core concepts.

No comments:

Post a Comment