Ashiwan, Why not use something like ASM, BCEL, or Javaassist? Those tools already support what you are after.
Ron DiFrango Director / Architect | CapTech (804) 855-9196 Sent from my iPhone On Jan 23, 2012, at 2:30 PM, "Ashiwan.S." <[email protected]> wrote: > Hi All, > > This email is in continuation with the below thread. I understand that > there is no feature in aspectj to change the signature of existing > methods to add an extra parameter, without actually modifying the > application source code. I am wondering what it would take to > implement such a feature in aspectj. The feature can be used to add > arguments to existing methods/functions in applications without > modifying the source code. Since aspectj is open source, I hope > implementing the feature is possible. I would be very much happy to > implement it in aspectj so that I could use it for my research and > contribute to aspectj community. Highly appreciate if someone could > tell me if they see any issues/road blocks in implementing this > feature in Aspectj. > > Thanks, > Ashiwan > > On Mon, Dec 5, 2011 at 12:50 PM, Ashiwan.S. <[email protected]> wrote: >> Hi, >> >> Thank you so much for the reply. >> I guess I would have to modify the bytecode and xml specification for >> the data (since the application has been written to use SOAP). If >> that's the case, then I wonder if aspectj can help me at all in >> modularizing this work. >> >> I am thinking of doing something as below using aspectj. >> >> 1. Write a client side aspect which has a nested static class inside >> it. The class implements a remote method. The remote method will save >> the extra data in the object every time the data is available from the >> HTTP request. >> 2. Write a server side aspect such that , before the actual EJB call, >> make a remote method call to get the data and then proceed further >> with the actual call., >> >> I understand that there is an extra overhead in making RMI call for >> every request received from the Front-end to the Business logic. >> But I am wondering if this will even work and can be done using aspectj. >> It would be great if someone can tell me if this can be done using >> aspectj . If yes, will it solve my problem. Highly appreciate any >> help. >> >> Thanks, >> Ashiwan >> >> -- >> -Ashiwan > > > > -- > -Ashiwan > _______________________________________________ > aspectj-dev mailing list > [email protected] > https://dev.eclipse.org/mailman/listinfo/aspectj-dev _______________________________________________ aspectj-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/aspectj-users
