Announcement Announcement Module
No announcement yet.
Templated Abstract Controller -- Possible? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.