Re: [PROPOSAL] lifecycle release

Stefano Mazzocchi <[email protected]> Mon, 17 Mar 2003 22:09:09 +0100
Newsgroups gmane.comp.jakarta.avalon.phoenix.devel
Message-ID <[email protected]>
Noel J. Bergman wrote:
>>BTW, I'm still thinking about the logging thing.
>>Imagine that we have all logging calls done like this:
>>  //@log("hello log");
>>we would have logging disabled by default, but we can transform the
>>class to use logging when running
> 
> 
> We do something similar in James with Ant, but the changes are at compile
> time.

Right, that's how almost everybody does aspect-oriented things today but 
code preprocessing is evil. Java cries for a little more aspect 
orientation but aspectj (or even worse hyperj) are simply too much.

Nicola's approach sounds hacky as hell.

What we need is a way to add multidimensionality (a-la namespace) to 
java code, but I can't figure out a way to do it without breaking the 
java syntax.