I'm currently using IntelliJ 7.0M1b, and I noticed something new (and cool! ;)): Generate Spring Setter Dependency. It automatically inserts a setter in my code, selects the right type of object, and also changes the applicationContext so the bean is add there also. Great stuff!
There's only one strange thing here: It add's the implementation class as a dependency, and not the interface. What it currently does is this:
3 things can be noticed here:
1) Why the Impl (I can image: I use the impl in my spring config... but having the impl version as a dependency in my code is quite not useful..)
2) Why the foo? Why not : 'productDao' ?
3) Where's the field? Now it only adds a dummy method which actually does nothing.
to fix this, I have to rename the property in the code, in the xml, rename the foo, and add assign (and create) the correct field... To me, it sound like a lot of work!
So, what I'd rather see is something like this:
Would this be possible??