Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Access the call(Method)

Hello,

I think it's a trivial question but I was not able to figure it out myself.

following Code should show what I mean:
----------------------
 public aspect MyAspect 
 { 
     pointcut myPointCut: call(boolean MyObject.method()); 
     
     before(): myPointCut 
     { 
          MyObject.otherMethod(); 
     } 
 } 
----------------------

How am I able to call the MyObject.otherMethod() within the "before pointcut"?

Thank you for your answer in advance,
stefan walkner

--
Ein Service von http://www.sms.at



Back to the top