Monday, April 02, 2007

Spring sample project

I found a nice (and small) Spring sample project on the Interface21 Team Blog.

I learned about @NotNull annotations and how to define/process them in the applicationContext.xml. Also, this is an interesting remark I found about registering PropertyEditors:

The JavaBeans package uses a small little convention to resolve property editors. If a conversion is needed for a specific class, the JavaBeans package searches (amongst other) for a class in the same package named after the to be converted class, appended with 'Editor'. Therefore, the CarModelEditor does NOT have to be registered; it's found automatically!

I suggest you download the code and have a look at the xml and java files.

Labels: , ,

4 Comments:

Blogger ഉണ്ണിക്കുട്ടന്‍ said...

good effort! can i run this code. any database dependency?

10:47 AM, July 12, 2007  
Anonymous Anonymous said...

Thanks a lot Pieter

11:44 AM, July 24, 2008  
Anonymous Anonymous said...

I would like to know if there are any jars to be added

12:43 PM, September 12, 2008  
Blogger Pieter Coucke said...

I didn't write this code, please check the original site.

12:51 PM, September 12, 2008  

Post a Comment

Links to this post:

Create a Link

<< Home