ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  An Introduction to Aspect-Oriented Programming with the Spring Framework, Part 1
Subject:   Automatic Swap of Target Class
Date:   2006-03-29 22:54:31
From:   spidercat
Hi


I have a question on how to swap the class? At the moment I have an existing class ClassA.foo, and I want this to use a different class instead ClassB to do a different implementation of the call (I am not using interfaces). I am not very familiar with AspectJ, but this concept is working of AspectJ, that is, it automatically swaps the class with pattern similar to the ClassA name and packaging. However for Spring, it seems like I couldnt find a way to automatically allow the his. I still have to use an interface first to specify in the context xml the advisors, and I have to use the application context xml.


1 to 1 of 1
  1. Russell Miles photo Automatic Swap of Target Class
    2006-03-30 00:53:13  Russell Miles | O'Reilly AuthorO'Reilly Blogger [View]

    • Automatic Swap of Target Class
      2006-03-30 19:04:31  spidercat [View]

      • Russell Miles photo Automatic Swap of Target Class
        2006-03-31 00:06:31  Russell Miles | O'Reilly AuthorO'Reilly Blogger [View]

        • Automatic Swap of Target Class
          2006-04-06 01:57:53  spidercat [View]

1 to 1 of 1