[aspectwerkz-user] AOP advice execution sequence
akhilesh laddha <[email protected]> Tue, 20 Nov 2007 09:00:10 -0800 (PST)
| Newsgroups | gmane.comp.java.aspectwerkz.user |
|---|---|
| Message-ID | <[email protected]> |
--0-676251925-1195578010=:39033
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Hi All,
I would like to get clarify my self about AOP advice execution sequence along with the application code. Does AOP advice execute in parallel with application methods for that cross cut defines?
For example
Application method - foo() (for cross cut define)
Takes execution time T1
Advice fooAdvice() takes t1 time
If AOP advice runs sequentially with application code then additional performance hit because of advice code execution.
Total time will be T1 +t1
From my understanding it runs in parallel therefore it takes time equal to whichever is higher for ex T1
Please correct my understanding
Thanks
Akhilesh
---------------------------------
Be a better sports nut! Let your teams follow you with Yahoo Mobile. Try it now.
--0-676251925-1195578010=:39033
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
<FONT face="Times New Roman" size=5> <div class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 12pt">Hi All,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></div> <div class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 12pt">I would like to get clarify my self about AOP advice execution sequence along with the application code. Does AOP advice execute in parallel with application methods for that cross cut defines?<o:p></o:p></SPAN></div> <div class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 12pt"><o:p> </o:p></SPAN></div> <div class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 12pt">For example <o:p></o:p></SPAN></div> <div class=MsoNormal style="MARGIN: 0in 0in 0pt"
><SPAN style="FONT-SIZE: 12pt">Application method - foo()<SPAN style="mso-spacerun: yes"> </SPAN>(for cross cut define)<o:p></o:p></SPAN></div> <div class=MsoNormal style="MARGIN:
0in 0in 0pt"><SPAN style="FONT-SIZE: 12pt">Takes execution time T1<o:p></o:p></SPAN></div> <div class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 12pt">Advice fooAdvice() takes t1 time<o:p></o:p></SPAN></div> <div class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 12pt"><o:p> </o:p></SPAN></div> <div class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 12pt">If AOP advice runs sequentially with application code then additional performance hit because of advice code execution. <o:p></o:p></SPAN></div> <div class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 12pt"><o:p> </o:p></SPAN></div> <div class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 12pt">Total time will be T1 +t1<o:p></o:p></SP
AN></div> <div class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 12pt"><o:p> </o:p></SPAN></div> <div class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 12pt">From my understanding it runs in parallel therefore it takes time equal to whichever is higher for ex T1<o:p></o:p></SPAN></div> <div class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 12pt"><o:p> </o:p></SPAN></div> <div class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 12pt">Please correct my understanding<o:p></o:p></SPAN></div> <div class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 12pt"> <o:p></o:p></SPAN></div> <div class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 12pt">Thanks<o:p></o:p></SPAN></div> <div class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 12pt">Akhilesh<o:p></o:p></SPAN></div> <div class=MsoNormal style="MARGIN: 0in 0in 0pt"></FONT> 
;</div><p> 
<hr size=1>Be a better sports nut! Let your teams follow you
with Yahoo Mobile. <a href="http://us.rd.yahoo.com/evt=51731/*http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ
">Try it now.</a>
--0-676251925-1195578010=:39033--