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.
1) hack the bytecode. It's basically what MS has done with the CLR and its gazillion (actually compatible) extensions, and it appears to be where java is going, JSR 175 looking to be the first step. Waaaay behind on .net though.
2) Alternatively, replace method calls with events (flyweights) and layer AOP on top of OOP. Too slow in java.
3) define a finite number of aspects and support them using "aspect marker" interfaces (enter: avalon! :D)
4) JNI. Won't even go into it :D
...
all potentiallly or by design hacky!
cheers,
- Leo
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
