-
Jun 25th, 2009, 02:03 PM
#1
Customerization points with @MVC
Hi,
I am new to the forum. If this kind questions have been asked and answered, please point me to the relevant links.
I want to use the new annotation based controller model in 2.5. It does make my code much cleaner and easy to read. However, at same time, it also seems to take away many extension points available with inheritance based approach. One of the problems I am trying to solve is to plugin my custom binder so that I can do some basic validation agaist raw inputs before binding happens. With inheritance, I can override the createBinder() method to create a custom binder instance. How do I do that with annotation?
Also, it seems validation has to be explictly invoked from the controller, which seems a step back from the previous architecture.
Thanks
Xiaohong
-
Jun 25th, 2009, 03:14 PM
#2
This is definitely not an annotation type provided by spring. But you should be able to create your own annotation and plugin?
-
Jun 26th, 2009, 11:07 AM
#3
Is there a documented way of this kind of customization?
-
Jun 26th, 2009, 11:19 AM
#4
I am sorry no. My assumption is based on the way spring implementing its annotation and my understanding of annotation. Just for brain storming.
-
Jun 27th, 2009, 08:55 PM
#5
Is there a documented way of this kind of customization?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules