private Object makeModelObject ( String formName ) { Object object = null ; Class modelClass = null ; try { modelClass = ( Class ) modelFactory . getModelClasses ( formName ) ; if ( modelClass == null ) { throw new Exception ( " not found the model in config xml, formName=" + formName ) ; } object = modelClass . newInstance ( ) ; // inject modelProxyInjection . injectProperties ( object ) ; } catch ( Exception e ) { Debug . logError ( "[JdonFramework]--> call Model: " + modelClass + " error:" + e , module ) ; } return object ; }
create model instance from the model class that read from the xml configure .