I also forgot to mention - I think it would be useful to have an option to include the 3.1 experimental jars on a project. I don't think Eclipse WTP has any 3.1 support yet, but we could just add it as an option on our runtime configuration panel. Does anyone have any objections or other thoughts?

Jon

Jonathan Gallimore wrote:
I've managed to hack something up around this - basically it uses JDT to parse the necessary Singletons, and then walks through the PreDestroy and PostContruct methods looking for method invocations. Its pretty basic at the moment, it does a complete search on every build, rather than building incrementally. It does work recursively, and will visit other classes (if you make a call like new MyOtherClass().someMethod() in the PreDestroy/PostConstruct method for example), so its potentially a long running operation. It will mark incorrect / missing uses of @DependsOn as errors.

I've checked it in, but left it to be switched off by default. I'm planning to add quick fix and incremental build support soon too.

Any comments are welcome. I'm also happy to have a go at providing this in IntelliJ if that would be useful to anyone.

Jon



Reply via email to