2011-04-27

General method to check properties of an object using Spring EL []

Moved to the page http://3rdstage.wikia.com/wiki/Simple_Patterns_and_Typical_Samples in my wiki as of 23th Jul. 2013.

Spring 3.0 introduced powerful expression language (SpEL). We can make a simple utility method to check the properties of an object in any type using SpEL

The following is simple sample.

Note that the method consists of only two line. With the following unit test sample, you can imagine the robustness of the above method.

1 comments:

ZVN Properties said...

Wow what a great post. I like it.


Thanks for more sharing..........




ZVN Properties Inc

Post a Comment