Results 1 to 6 of 6

Thread: Listing a number of good uses of spring AOP

  1. #1

    Default Listing a number of good uses of spring AOP

    1. Performance monitoring by measuring the elapsed time of target method calls.
    2. Database transaction management.
    3. Printing out all input parameters of target method calls.
    4. Dynamic Exceptions handling (i.e. generating a email report when target exceptions are thrown)


    Can you think of more examples?

  2. #2
    Join Date
    Jun 2006
    Location
    SF Bay Area, California
    Posts
    524

    Default

    Take a look at Table of Content of my book (link in signature) as well as downloadable source code. You will find many new usages.

    -Ramnivas
    Ramnivas Laddad (Follow me on Twitter)
    AspectJ in Action: Enterprise AOP with Spring Applications (2nd edition). Now available!

  3. #3
    Join Date
    Jan 2008
    Location
    San Diego
    Posts
    780

    Default

    AOP is typically used for "cross cutting concerns". Anything that is a cross cutting concern is a use for AOP.

    All the things you've listed are crosscutting concerns.

    I'd suggest reading this:

    http://en.wikipedia.org/wiki/Aspect-...ed_programming
    http://www.developer.com/tech/articl...rogramming.htm

    Interestingly, the professor of my Software Engineering course in grad school worked with the original developer of AspectJ (http://en.wikipedia.org/wiki/Gregor_Kiczales) at PARC during his sabbatical in 1999-2001.
    Last edited by chudak; Jan 3rd, 2010 at 02:30 PM.

  4. #4

    Default

    Quote Originally Posted by ramnivas View Post
    Take a look at Table of Content of my book (link in signature) as well as downloadable source code. You will find many new usages.

    -Ramnivas
    Would you post your link here. I could not locate your sig.

  5. #5
    Join Date
    Jun 2006
    Location
    SF Bay Area, California
    Posts
    524

    Default

    Quote Originally Posted by zollen View Post
    Would you post your link here. I could not locate your sig.
    http://manning.com/laddad2
    Ramnivas Laddad (Follow me on Twitter)
    AspectJ in Action: Enterprise AOP with Spring Applications (2nd edition). Now available!

  6. #6

    Default

    In my spring-mvc application am using for following two purposes:
    • Audit Trail for portal user actions for some critical features
    • Masking some user data eg. SSN when exposed to portal/outside database

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •