View RSS Feed

AOP

Spring AOP

  1. Spring Framework and AOP

    by , 07-07-2012 at 07:27 PM
    The Aspect Oriented Programming (AOP) framework is the key Spring framework component. Program logic is breaked down into unique parts by the Aspect Oriented Programming which are called so-called concerns. The cross cutting concerns are the functions of an application which are based on multiple points. The application business logic is seprated from cross cutting concerns conceptually. Following are the examples of aspects:

    • Auditing
    • Logging
    • Declarative transactions ...
    Categories
    AOP
  2. How to Inject AspectJ Aspects into Spring

    by , 11-29-2011 at 03:53 AM
    For those of you who have already worked with Spring AOP knows that it is sufficient for many of the applications of aspects that are generally done in a system. Still it is weak in certain areas of AOP solution in contrast to AspectJ that has added a number of powerful features over time. There are now many types of AspectJ pointcuts that aren’t possible with Spring AOP.

    For example, Spring’s proxy-based AOP is not able to advise on object creation. This is because constructors in ...
    Categories
    AOP , Spring 3
  3. Writing AOP in Spring

    by , 11-16-2011 at 06:35 PM
    In this last installment of Spring AOP, we will provide an example of how to use AOP in Spring.
    In the listing below, we add a car to an order.

    Java Code:
    package com.acme.springexamples.main;
    import com.acme.springexamples.service.CarService;
    import com.acme.springexamples.service.OrderService;
    ...
    public class Main { public static void main(String[] args) {
    	ApplicationContext context = 
    		new ClassPathXmlApplicationContext("META-INF/spring/*.xml");
    ...
  4. More AOP in Spring Part 2

    by , 11-16-2011 at 06:26 PM
    Along with aspect’s advice, pointcuts, which are used to pinpoint where an aspect’s advice should be applied, are considered among the most fundamental elements of an aspect. In Spring AOP, we define pointcuts using AspectJ’s pointcut expression language. If you’re already know AspectJ, then defining pointcuts in Spring should feel natural. Otherwise, I will provide you with quick tips that will help you with writing AspectJ-style pointcuts.

    In Spring AOP, the key thing to remember ...
    Tags: aop, spring aop Add / Edit Tags
    Categories
    AOP
  5. More on AOP in Spring Part 1

    by , 11-16-2011 at 06:03 PM
    In the previous tip, we started to look at Aspect Oriented Programming support in Spring. In this tip we will continue with this assessment of this exciting technology. Before we start there are a number of terms that I need to introduce to you in order that you can speak the lingo of AOP. I list these terms below:
    • Advice - I had briefly mentioned this is the last tip. Advice is the code to be executed at a join point that has been selected by a pointcut. Advice can execute before, after,
    ...

    Updated 11-16-2011 at 06:05 PM by Spring Framework

    Categories
    AOP
  6. An Introduction to Aspect Oriented Programming

    by , 11-16-2011 at 05:58 PM
    Aspect-oriented programming (AOP) is a new methodology that provides separation of crosscutting concerns. Crosscutting concerns are system wide concerns that span multiple modules. In applications, these system wide concerns would involve features such as logging, security, persistence and any other element common to a majority of the core business modules. This type of programming is done by introducing a new unit of modularization—an aspect—that crosscuts other modules. Using AOP you would implement ...
    Tags: aop, aspectj Add / Edit Tags
    Categories
    AOP