Re: [aspectwerkz-user] non recursive proceed
Jonas Bonér <[email protected]> Fri, 3 Feb 2006 13:55:42 -0800
| Newsgroups | gmane.comp.java.aspectwerkz.user |
|---|---|
| Message-ID | <[email protected]> |
you would need to use: * a boolean on/off in the advice/aspect * undeployment of aspect * custom bytecode gen I do not see any other way since the whole call stack is statically compiled /Jonas On 2/3/06, Markus Kohler <[email protected]> wrote: > Hi, > the documentation for JoinPoint.proceed says "Walks through the pointcuts > and invokes all its advices. When the last advice of the last pointcut has > been invoked, the original method is invoked. Is called recursively." > > For my application I would like to not call the advices recursively, but > only once. > Basically I only want to run the original method, without invoking advices. > > Is there simple way to achieve that ? > > Regards, > Markus > > -- Jonas Bonér Terracotta, Inc. http://jonasboner.com http://www.terracottatech.com