AspectJ

View: [ 2009 | 2008 | 2007 | 2006 | 2005 | 2004 | 2003 | 2002 ]

Articles
Books
  Presentations
  

Articles:
  • Writing Mixins using AspectJ by Mohan Radhakrishnan   - [Clicks: 62]
    This article shows what mixins are and explains how AOP constructs in AspectJ allow us to use this technique to isolate crosscutting concerns, with an example. It starts with a plain Java implementation and ends with an AspectJ 5 implementation.
    http://today.java.net/pub/a/today/2005/12/15/writing-mixins-with-aop.html - Dec, 2005
  • AOP@Work: Dependency injection with AspectJ and Spring by Adrian Colyer   - [Clicks: 68]
    Dependency injection and aspect-oriented programming are complementary techniques, so it's natural to want to use them together. Follow along as Adrian Colyer explores the relationship between the two and shows you how you can combine them to facilitate advanced dependency injection scenarios.
    [Includes sample code]
    http://www-128.ibm.com/developerworks/java/library/j-aopwork13.html - Dec, 2005
  • AOP@Work: Performance monitoring with AspectJ, Part 2 by Ron Bodkin   - [Clicks: 27]
    Once you have a basic aspect-oriented monitoring infrastructure in place, you'll want to extend it to address real-world monitoring needs. In this second half of his two-part article, Ron Bodkin shows you how to add enterprise monitoring features to the Glassbox Inspector, including monitoring multiple applications, Web services, and Web application frameworks. He also shows you how to track application errors and contain them in monitoring code and demonstrates pragmatic approaches to deploying and controlling your monitoring infrastructure.
    [Includes sample code]
    http://www-128.ibm.com/developerworks/java/library/j-aopwork12/index.html - Nov, 2005
  • Implementing Validation Rules using Aspects by Srini Penchikala   - [Clicks: 66]
    Srini Penchikala shows how to combine AspectJ and Drools to create a rule-driven data validation system that allows new validations to be inserted at any time.
    http://today.java.net/pub/a/today/2005/11/08/implementing-validation-rules-with-aspects.html - Nov, 2005
  • AOP@Work: Unit test your aspects by Nicholas Lesiecki   - [Clicks: 26]
    AOP makes it easier than it's ever been to write tests specific to your application's crosscutting concerns. Find out why and how to do it, as Nicholas Lesiecki introduces you to the benefits of testing aspect-oriented code and presents a catalog of patterns for testing crosscutting behavior in AspectJ.
    [Includes sample code]
    http://www-128.ibm.com/developerworks/java/library/j-aopwork11/index.html - Nov, 2005
  • AOP@Work: Performance monitoring with AspectJ, Part 1 by Ron Bodkin   - [Clicks: 36]
    Say goodbye to scattered and tangled monitoring code, as Ron Bodkin shows you how to combine AspectJ and JMX for a flexible, modular approach to performance monitoring. In this first of two parts, Ron uses source code and ideas from the Glassbox Inspector open source project to help you build a monitoring system that provides correlated information to identify specific problems, but with low enough overhead to be used in production environments.
    [Includes sample code]
    http://www-128.ibm.com/developerworks/java/library/j-aopwork10/index.html - Sep, 2005
  • AOP@Work: New AJDT releases ease AOP development by Matt Chapman   - [Clicks: 17]
    AJDT Eclipse technology project leader Matt Chapman walks you through AJDT 1.2 and 1.3, the latest releases of the AspectJ development tools for Eclipse 3.0 and 3.1, respectively. The major focus of these releases is to more closely integrate AspectJ with the Eclipse platform and to offer AspectJ developers more of the advanced tooling support available to Java developers using Eclipse.
    http://www-128.ibm.com/developerworks/java/library/j-aopwork9/ - Aug, 2005
  • AOP@Work: Introducing AspectJ 5 by Adrian Colyer   - [Clicks: 47]
    Now in its second milestone build, AspectJ 5 is a big leap forward for aspect-oriented programming on the Java platform. A major focus of AspectJ 5 is on providing support for the new Java language features introduced in Java 5, including annotations and generics. In addition, the language contains new features not tied to Java 5, such as an annotation-based style for writing aspects, improved load-time weaving, and a new aspect instantiation model. Get a first look at AspectJ 5 from Adrian Colyer, lead developer on the project, as he introduces you to both the AspectJ 5 language and the release containing the AspectJ compiler and associated tools.
    http://www-128.ibm.com/developerworks/java/library/j-aopwork8/index.html - Jul, 2005
  • AOP@Work: Use AOP pointcuts to skip patterns in the JUnit Cook's Tour by Wes Isberg   - [Clicks: 39]
    In "JUnit: A Cook's Tour," authors Erich Gamma and Kent Beck discuss the design of JUnit. They point out that TestCase, like key abstractions in many mature frameworks, has a high pattern density, making it easy to use but hard to change. In this installment of the AOP@Work series, Wes Isberg revisits the Cook's Tour and shows you how using AOP pointcuts rather than object-oriented designs can help you avoid some of the pattern density that makes mature designs hard to change.
    [Includes source code]
    http://www-128.ibm.com/developerworks/java/library/j-aopwork7/index.html - Jun, 2005
  • AOP@Work: Enhance design patterns with AspectJ, Part 2 by Nicholas Lesiecki   - [Clicks: 24]
    Nicholas Lesiecki continues his discussion of the benefits of implementing design patterns with aspect-oriented techniques with this in-depth study of the Observer pattern. In this article of the AOP@Work series, he illustrates how AspectJ allows complex patterns to be converted into reusable base aspects, thus enabling framework authors to supply prebuilt libraries of patterns for developers to exploit.
    [Includes sample code]
    http://www-128.ibm.com/developerworks/java/library/j-aopwork6/index.html - May, 2005
  • AOP@Work: Enhance design patterns with AspectJ, Part 1 by Nicholas Lesiecki   - [Clicks: 28]
    Design patterns have long been part of the experienced developer's tool chest. Unfortunately, because patterns can affect multiple classes, they can also be invasive and hard to (re)use. In this two-part article, the third in the AOP@Work series, Nicholas Lesiecki shows you how AOP solves this problem by fundamentally transforming pattern implementation. He examines three classic Gang of Four (GoF) design patterns (Adapter, Decorator, and Observer) and discusses the practical and design benefits of implementing them with aspect-oriented techniques.
    [Includes source code]
    http://www-128.ibm.com/developerworks/java/library/j-aopwork5/index.html - May, 2005
  • Implementing Object Caching with AOP by Srini Penchikala   - [Clicks: 179]
    Object caching provides a mechanism to store frequently accessed data in memory, minimizing the calls to back-end database, and resulting in significant improvement in the application performance. It also gives us the ability to refresh different types of data at different time intervals (based on pre-defined eviction and cache refresh policies). Object caching offers several advantages with fast access to data but it also suffers from some disadvantages like memory overhead and synchronization complexity. By making caching an Aspect we get the flexibility of dynamically adding caching ability in a J2EE application for cached objects. We can also remove caching out of the application whenever it becomes a bottleneck in terms of memory usage. In this article, I will provide an example of object caching as an Aspect in J2EE applications and discuss the steps involved in injecting the caching functionality into a sample web application. I will also explain the flexibility of switching between two different caching frameworks without modifying any application code. The article uses AspectJ, with the caching logic implemented in both JBossCache and OSCache.
    [Includes sample application]
    http://www.theserverside.com/articles/article.tss?l=ObjectCachingWithAOP - Apr, 2005
  • Using Aspects to autonomic-enable legacy applications by Brian Temple   - [Clicks: 20]
    Learn how to use Aspects to generate Common Base Events in any legacy Java application, without modifying the original application source. This article shows you how and also provides an example framework that can be used with your applications today.
    http://www-128.ibm.com/developerworks/java/library/ac-aspects/ - Mar, 2005
  • AOP@Work: AOP and metadata: A perfect match, Part 1 by Ramnivas Laddad   - [Clicks: 32]
    In this first half of a two-part article, author Ramnivas Laddad provides a conceptual overview of the new Java metadata facility and shows where AOP could most benefit from the addition of metadata annotations. He then walks you through a five-part design refactoring, starting with a metadata-free AOP implementation and concluding with one that combines the Participant design pattern with annotator-supplier aspects.
    http://www-128.ibm.com/developerworks/java/library/j-aopwork3/ - Mar, 2005
  • AOP@Work: AOP tools comparison, Part 1 by Mik Kersten   - [Clicks: 175]
    AOP is a technology whose time has come, but how do you choose the right tool for your projects? In this first article in the new AOP@Work series, aspect-oriented programming expert Mik Kersten compares the four leading AOP tools (AspectJ, AspectWerkz, JBoss AOP, and Spring AOP) to help you decide which one is for you. In Part 1 of this two-part discussion, the author focuses on the tools' language mechanisms and the trade-offs imposed by the different approaches. Note that this article addresses the implications of the recently announced merger of the AspectJ and AspectWerkz projects.
    http://www-106.ibm.com/developerworks/java/library/j-aopwork1/ - Feb, 2005
  • AOP@Work: AOP tools comparison, Part 2 by Mik Kersten   - [Clicks: 84]
    In this second half of his two-part AOP tools comparison, aspect-oriented programming expert Mik Kersten focuses on the tools' integration with the development environment and build process, including a point-by-point comparison of the tools' IDE features. To help you make your final decision, the author concludes with a look at what's to come for these rapidly evolving tools, and provides a summary of each one's strengths and weaknesses. Note that this article addresses the implications of the recently announced merger of the AspectJ and AspectWerkz projects.
    http://www-106.ibm.com/developerworks/library/j-aopwork2/ - Feb, 2005

[Top]

Books:
  • Foundations of AOP for J2EE Development  by Renaud Pawlak, Jean-Philippe Retaillé, Lionel Seinturier   - [Clicks: 82]
    Foundations of AOP for J2EE Development covers a relatively new programming paradigm: aspect-oriented programming, or AOP. Presented are the core concepts of AOP: AspectJ, JBoss AOP, AspectWerkz, and JAC. Specific features of these tools are compared. The book also explores the potential uses of AOP in everyday programming life, such as design patterns implementation, program testing, and application management. In the latter part of the book, the authors show how AOP can ease the task of J2EE application development. (J2EE is known for being a rich and somewhat complicated framework.)
    Apress, Hardcover - Jul, 2005
  • AspectJ Cookbook  by Russell Miles   - [Clicks: 34]
    This hands-on book shows readers why and how common Java development problems can be solved by using new Aspect-oriented programming (AOP) techniques. With a wide variety of code recipes for solving day-to-day design and coding problems using AOP's unique approach, AspectJ Cookbook demonstrates that AOP is more than just a concept; it's a development process that will benefit users in an immediate and visible manner.
    O'Reilly Media, Inc., Paperback - 2005

[Top]

Presentations:
  • Invited Talk: AOP in Spring by Rob Harrop, Adrian Colyer   - [Clicks: 115]
    This talk gives a brief introduction to the Spring lightweight container and its support for dependency injection. Spring's approach to AOP will be presented, along with examples of some of the aspects that come pre-packaged with Spring. Spring also integrates well with AspectJ, and examples will be given of how to configure and use AspectJ aspects with Spring, We will discuss when it is appropriate to use Spring's AOP framework, and when to use AspectJ aspects. The talk will conclude with a look at some ongoing developments to make the use of both Spring AOP aspects and AspectJ aspects as seamless as possible in the Spring container.
    [Formats: PDF]
    http://aosd.net/2005/industry/talk4.php - Mar, 2005

[Top]