|
Hi Emmanuel,
Do you mean a tool that will check that standard
practices and patterns are followed ? Like verifying (for example) that for any
use case, there is a Struts Action class, ... If this is the case, it is very
difficult to write. However, such as tool might already exist. It is called
AspectJ (and there is an Ant task for it), http://aspectj.org/. It is an addition to the
java language and offer some additional syntax to capture what is called
cross-cutting aspects. With the current Java language it is very difficult to
extract pattern rules and define them explicitely somewhere. They are
rather mixed in the different methods and there is no way to express
them.
AspectJ will let you define such patterns or
behaviours. It can be used in several ways: as a tool in the debugging phase of
program to ensure that correct rules are followed. It can also be used during
production for modifying states. See the AspectJ tutorial.
It works by providing a compiler, which produces
java code which is then compiled by javac. All this is automated using an Ant
task if you wish.
Have a look and I'm sure you'll be amazed at what
you can do with it, as I have been. I have not used it yet but plan to do so
soon enough...
Hope it helps
-Vincent
|
- Task to check that the layering and componentazing of an a... Emmanuel Sciara
- Re: Task to check that the layering and componentazin... Vincent Massol
- Re: Task to check that the layering and component... Emmanuel Sciara
- Re: Task to check that the layering and compo... Vincent Massol
- Re: Task to check that the layering and c... Emmanuel Sciara
