Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Preventing method parameters from being evaluated in advice

> The question is now, if there is any way to prevent the evaluation of
> arguments to method calls. In this case I would very much like to learn how,

Use Haskell instead.  :-)

Actually, the only way I can think of doing this is to set up around
advice around the doSomething() method.  Something like:

around() : if (! getLogger().isDebuggingEnabled()) && call(* doSomething()) {
  // don't proceed
}

But this may not be easy if "doSomething()" is a short hand for many,
many different operations.


Back to the top