Oct 4th, 2008, 01:09 PM
Templated Abstract Controller -- Possible?
I want to make a generic CRUD controller that works with MVC Annotations.
I've got a basic controller that works, the only thing I really need to do to make it generic would be to make it Templated around my CommandObject (entity) class.
I can't see how to do this though since Spring controls the instantiation of the controller class. I'm just learning Spring so maybe I'm going about it the wrong way, but I can't seem to find an easy way to do this. I want to avoid xml as much as possible.