public void resolveSpringMappingItem() { //String sTilesFile = "tiles-view-definitions.xml"; //Dictionary<String, String> dTilesDefinitions = getDictionaryWithTilesDefinitions(Path.Combine(sWebRoot, sTilesFile)); // fadCirData = load.loadSerializedO2CirDataObject(sO2CirDataFile); //SpringBeans sbSpringBeans = new SpringBeans(beansUtils.getAllBeans_RecursiveSearch(sWebRoot)); foreach (String sBeanName in dBeans.Keys) //String sBeanName = "userController"; { XmlNode xnBean = getBean(sBeanName); var spSpringControler = new SpringController(sBeanName, xnBean); var smSpringMapping = new SpringMappingItem(); smSpringMapping.sInnerXml = xnBean.InnerXml; if (spSpringControler.dEntries.Count == 0) { smSpringMapping.sBean = spSpringControler.sId; smSpringMapping.sClass = spSpringControler.sClass; } else { foreach (String sName in spSpringControler.dEntries.Keys) { smSpringMapping.sBean = sBeanName; smSpringMapping.sClass = spSpringControler.sClass; smSpringMapping.sKey = sName; if (spSpringControler.dEntries[sName].dProperties.ContainsKey("commandClass")) { smSpringMapping.sCommandClass = spSpringControler.dEntries[sName].dProperties["commandClass"].sValue; } if (spSpringControler.dEntries[sName].dProperties.ContainsKey("formView")) { smSpringMapping.sFormView = spSpringControler.dEntries[sName].dProperties["formView"].sValue; } if (spSpringControler.dEntries[sName].dProperties.ContainsKey("commandName")) { smSpringMapping.sCommandName = spSpringControler.dEntries[sName].dProperties["commandName"].sValue; } // DI.log.info(smSpringMapping.ToString()); //if (smSpringMapping.sFormView != "" && smSpringMapping.sCommandClass != "") //{ // if (dTilesDefinitions.ContainsKey(smSpringMapping.sFormView)) // smSpringMapping.sJsp = (sWebPath + dTilesDefinitions[smSpringMapping.sFormView]).Replace(@"/", @"\"); ; //} } } dSpringMappingItems.Add(smSpringMapping.sBean, smSpringMapping); } }
public void resolveSpringMappingItem() { //String sTilesFile = "tiles-view-definitions.xml"; //Dictionary<String, String> dTilesDefinitions = getDictionaryWithTilesDefinitions(Path.Combine(sWebRoot, sTilesFile)); // fadCirData = load.loadSerializedO2CirDataObject(sO2CirDataFile); //SpringBeans sbSpringBeans = new SpringBeans(beansUtils.getAllBeans_RecursiveSearch(sWebRoot)); foreach (String sBeanName in dBeans.Keys) //String sBeanName = "userController"; { XmlNode xnBean = getBean(sBeanName); var spSpringControler = new SpringController(sBeanName, xnBean); var smSpringMapping = new SpringMappingItem(); smSpringMapping.sInnerXml = xnBean.InnerXml; if (spSpringControler.dEntries.Count == 0) { smSpringMapping.sBean = spSpringControler.sId; smSpringMapping.sClass = spSpringControler.sClass; } else foreach (String sName in spSpringControler.dEntries.Keys) { smSpringMapping.sBean = sBeanName; smSpringMapping.sClass = spSpringControler.sClass; smSpringMapping.sKey = sName; if (spSpringControler.dEntries[sName].dProperties.ContainsKey("commandClass")) smSpringMapping.sCommandClass = spSpringControler.dEntries[sName].dProperties["commandClass"].sValue; if (spSpringControler.dEntries[sName].dProperties.ContainsKey("formView")) smSpringMapping.sFormView = spSpringControler.dEntries[sName].dProperties["formView"].sValue; if (spSpringControler.dEntries[sName].dProperties.ContainsKey("commandName")) smSpringMapping.sCommandName = spSpringControler.dEntries[sName].dProperties["commandName"].sValue; // DI.log.info(smSpringMapping.ToString()); //if (smSpringMapping.sFormView != "" && smSpringMapping.sCommandClass != "") //{ // if (dTilesDefinitions.ContainsKey(smSpringMapping.sFormView)) // smSpringMapping.sJsp = (sWebPath + dTilesDefinitions[smSpringMapping.sFormView]).Replace(@"/", @"\"); ; //} } dSpringMappingItems.Add(smSpringMapping.sBean, smSpringMapping); } }