|
I have thought a bit about this this week end and
here are my ideas :
- I'd like to have a mechanism to check the
user configuration automatically and report nice errors if something is wrong.
The checks could include : correct jars in the classpath, valid
cactus.properties file, valid web.xml file with same mapping that what is in
cactus.properties, ...
- Also, I'd like this to be transparent with
regards to the cactus code (i.e. no code modification). I consider this as a
kind of config wizard but that runs as the code runs.
- I'd also like that the logging of entry/exits of
methods are done automatically without any change in the code (as is currently
the case)
... Some of you will say "this is all nice but come
on Vince, you're dreaming !" :-)
I believe it is possible and I have even
experimented with this past week end. The solution is called Aspect Oriented
Programming and the tool that will make this a reality is called aspectj which
implements some aop concepts on top of java. For those interested, I recommend
to read the tutorial (http://aspectj.org/doc/dist/tutorial.pdf).
To make it short, it adds some new syntax to java. you then compile it with
aspectj compiler which generates standard java classes.
There only difference for cactus end users will be
that they will need to add a small jar to their classpath (both client and
server) : aspectj.jar (24kb). Do you think that is ok for such a great benefit
in exchange ? [I have to tell that I am quite excited to try aspectj as it looks
like a neat and useful concept]
What do you think ?
-Vincent
|
- java.io.StreamCorruptedException: InputStream does not... Mike Cannon-Brookes
- NoClassDefFoundError: WAS RE: java.io.StreamCorru... Mike Cannon-Brookes
- java.io.StreamCorruptedException: InputStream doe... Shridhar MD
- Re: java.io.StreamCorruptedException: InputSt... Vincent Massol
- Re: java.io.StreamCorruptedException: Inp... Shridhar MD
- RE: java.io.StreamCorruptedException: Inp... Nicholas Lesiecki
- Vincent Massol
