Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Using AJ to change program flow

I have been playing with AJ; doing some simple things like adding tracing to my code base but I wanted to write something that would change the program flow based on some criteria and I'm not sure if it's supported. As an example I have a lot of code with log statements like:

  log.log("some" + " complex" + " string" + " statement);

and I wanted to use AJ to effectively insert a conditional in front of each statement like:

   if (logIsOn) log.log("some" + " complex" + " string" + " statement);

which would conditionally change the program flow. I can't seem to figure out how to do this (or if it is possible).

Any suggestions?

Thanks
Jim Carroll


__________________________________________________________________
Switch to Netscape Internet Service.
As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register

Netscape. Just the Net You Need.

New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp


Back to the top