public static < T > T parameterizeObject ( T object ) { if ( object == null ) { return null ; } BeanMap beanMap = new BeanMap ( object ) ; List < Class < ? > > list = ReflectionUtils . getAncestorClasses ( object ) ; Collections . reverse ( list ) ; for ( Class < ? > clazz : list ) { doParametrization ( beanMap , clazz . getName ( ) ) ; } return object ; }
Sets properties on an object using the values defined in the Config . Will set properties defined in the Config for all of this object s super classes as well .