Did you know? DZone has great portals for Python, Cloud, NoSQL, and HTML5!

AspectJ

  • submit to reddit

Using Spring's AspectJ Support and the @Before Annotation

You may have wondered how the Guys at Spring do all that jiggery-pokery with the annotations that you add to your Spring beans. I’m not an expert here, but I suspect that somewhere along the way, they do a little Aspect Oriented Programming using AspectJ...

1 replies - 3389 views - 09/23/11 by Roger Hughes in Articles

AspectJ and Ant

I've just started working with AspectJ and despite its non-intuitive syntax, I'm pretty sold on its effectiveness at reducing development time and pre complexity by factoring out crosscutting concerns such as logging and security. However, the Internet is a...

0 replies - 2044 views - 08/24/11 by Alex Collins in News

Mock Static Methods using Spring Aspects

I am a Spring framework user for last three years and I have really enjoyed working with Spring. One thing that I am seeing these days is the heavy use of AspectJ in most of SpringSource products. Spring Roo is a RAD tool for Java developers which makes use...

4 replies - 4980 views - 01/25/11 by Shekhar Gulati in Articles

Inter Aspect Communication

When you want to develop an application like “performance monitor”, you must go with AOP. Here passing values between one aspect (advice in spring) to another is not possible.  The following example explains how to pass a value generated in one...

1 replies - 2143 views - 11/29/10 by Maheshkumar Per... in Tips and Tricks

IntelliJ IDEA X Early Release - Major Spring, Groovy, and Maven Upgrades

The release of IntelliJ IDEA 9.0 last year brought a flurry of extra excitement with JetBrains' announcement that there would also be a FOSS Community Edition with the release.  Although there's no major announcements on the open source front, the next...

1 replies - 13521 views - 07/29/10 by Mitchell Pronsc... in News

Walled Garden vs. Morton's Fork

Yet another stupid newsletter chunk of blather blew by today saying something like ‘until Android or something else takes hold, you are just building apps in Steve Jobs‘ world.‘ Now, generally, I hate to be the first one in the room to say ‘maybe...

1 replies - 2615 views - 04/21/10 by Rob Williams in News

Spring Roo 1.0 - a RAD tool for Java

The holidays were very happy for SpringSource project users.  Spring 3.0, Groovy 1.7, and Grails 1.2 were all released in GA before the year's end and now as we begin 2010, another present from Spring has arrived.  Introduced back in spring 2009, Spring Roo...

2 replies - 9975 views - 01/04/10 by Mitchell Pronsc... in News

Java Properties Without Getters and Setters

During the last Devoxx conference, Mark Reinhold, Sun's chief engineer for Java SE, gave a presentation on the latest directions for Java 7. (Hamlet D'Arcy's summary of Mark's presentation is available here.)

13 replies - 25085 views - 05/30/09 by Javier Paniza in Articles

Spring 2.5 Aspect-Oriented Programming Book Review

Chapter 1: Understanding AOP Concepts The first chapter is  a wide introduction to all the main concepts that you need to know in approaching AOP. All these components are described with their...

1 replies - 6581 views - 05/11/09 by Piergiorgio Lucidi in Book Reviews

A Tour of AOP

The AOP methodology is just that—a methodology. In order to be of any use in the real world, it must be implemented, or realized. As with any methodology, it can be implemented in various ways. For example, one realization of the OOP methodology...

0 replies - 20556 views - 09/12/08 by James Sugrue in Articles

Aspect Oriented Programming - A Different Aspect.

Yesterday I was having a meeting about a new project startup. At some level the meeting was stuck on an argument of logging. Well I suggested the same thing as any experienced developer would suggest... "Why don't we use the Aspects?".

16 replies - 5377 views - 07/24/08 by Murat Yener in News