Women in Technology

Hear us Roar



Article:
  Aspect-Oriented Programming and JBoss
Subject:   access method return value
Date:   2003-06-03 09:15:52
From:   anonymous2
can I do that?
set the return value of a method?


regards,


Horst.

Main Topics Oldest First

Showing messages 1 through 2 of 2.

  • access method return value
    2003-06-03 09:25:28  anonymous2 [View]

    Like this:

    response = invocation.invokeNext();
    response.setResponse(newValue);
    return response;

    Regards,
    Adrian
  • access method return value
    2003-06-03 09:21:43  patriot1burke [View]

    Yes, you can change the value of a return, and even a constructor or field access.

    We do this in JBoss 4 with our transaction ACID pojos. We intercept field access to a POJO and return the value that is associated with the transaction.

    Bill