public static Object setBeanProperties ( MetaClass mc , Object bean , Map properties ) { for ( Iterator iter = properties . entrySet ( ) . iterator ( ) ; iter . hasNext ( ) ; ) { Map . Entry entry = ( Map . Entry ) iter . next ( ) ; String key = entry . getKey ( ) . toString ( ) ; Object value = entry . getValue ( ) ; mc . setProperty ( bean , key , value ) ; } return bean ; }
This method is called by he handle to realize the bean constructor with property map .