text
stringlengths 0
2.2M
|
---|
}
|
clsstrucMaps[name] = allclsmap;
|
std::string tinc,ttypedefs,tclasses,tmethods,topers;
|
ref.generateClassDefinition(allclsmap,tinc,ttypedefs,tclasses,tmethods,topers,name);
|
std::string applibname = name;
|
StringUtil::replaceAll(applibname, "-", "_");
|
RegexUtil::replace(applibname, "[^a-zA-Z0-9_]+", "");
|
std::string flibname = name;
|
RegexUtil::replace(flibname, "[^a-zA-Z0-9_\\-]+", "");
|
ConfigurationData::getInstance()->securityObjectMap[name];
|
ConfigurationData::getInstance()->filterObjectMap[name];
|
ConfigurationData::getInstance()->controllerObjectMap[name];
|
ConfigurationData::getInstance()->mappingObjectMap[name];
|
ConfigurationData::getInstance()->mappingextObjectMap[name];
|
ConfigurationData::getInstance()->rstCntMap[name];
|
ConfigurationData::getInstance()->templateMappingMap[name];
|
ConfigurationData::getInstance()->dcpMappingMap[name];
|
ConfigurationData::getInstance()->viewMappingMap[name];
|
ConfigurationData::getInstance()->ajaxInterfaceMap[name];
|
ConfigurationData::getInstance()->fviewMappingMap[name];
|
ConfigurationData::getInstance()->wsdlMap[name];
|
ConfigurationData::getInstance()->websocketMappingMap[name];
|
logger << "started reading application.xml " << std::endl;
|
Document doc;
|
parser.readDocument(defpath+"config/application.xml", doc);
|
const Element& root = doc.getRootElement();
|
if(root.getTagName()=="app" && root.getChildElements().size()>0)
|
{
|
ElementList eles = root.getChildElements();
|
if(root.getAttribute("alias")!="" && StringUtil::trimCopy(root.getAttribute("alias"))!=name) {
|
ConfigurationData::getInstance()->appAliases[StringUtil::trimCopy(root.getAttribute("alias"))] = name;
|
}
|
if(root.getAttribute("libname")!="" && StringUtil::trimCopy(root.getAttribute("libname"))!=name) {
|
flibname = StringUtil::trimCopy(root.getAttribute("libname"));
|
RegexUtil::replace(flibname, "[^a-zA-Z0-9_\\-]+", "");
|
}
|
if(root.getAttribute("router")!="" && StringUtil::trimCopy(root.getAttribute("router"))!="") {
|
std::string router = StringUtil::trimCopy(root.getAttribute("router"));
|
ConfigurationData::getInstance()->servingContextRouterNames[name] = router+";"+name;
|
//Bean bean1(router,"",router,"singleton",false,true,name);
|
//ConfigurationData::getInstance()->ffeadContext.addBean(bean1);
|
logger << ("Adding Router for " + name + " :: " + router) << std::endl;
|
}
|
if(root.getAttribute("properties")!="" && StringUtil::trimCopy(root.getAttribute("properties"))!="") {
|
std::string properties = StringUtil::trimCopy(root.getAttribute("properties"));
|
propMap srprps = pread.getProperties(defpath+"config/"+properties);
|
ConfigurationData::getInstance()->appPropertiesMap[scappName] = srprps;
|
//Bean bean1(router,"",router,"singleton",false,true,name);
|
//ConfigurationData::getInstance()->ffeadContext.addBean(bean1);
|
logger << ("Adding Properties for " + name + " :: " + properties) << std::endl;
|
}
|
for (unsigned int apps = 0; apps < eles.size(); apps++)
|
{
|
if(eles.at(apps).getTagName()=="controllers")
|
{
|
ElementList cntrls = eles.at(apps).getChildElements();
|
for (unsigned int cntn = 0; cntn < cntrls.size(); cntn++)
|
{
|
if(cntrls.at(cntn).getTagName()=="controller")
|
{
|
std::string url = cntrls.at(cntn).getAttribute("path");
|
StringUtil::trim(url);
|
std::string clas = cntrls.at(cntn).getAttribute("class");
|
StringUtil::trim(clas);
|
std::string scope = cntrls.at(cntn).getAttribute("scope");
|
if(url!="" && clas!="")
|
{
|
normalizeUrl(name, url);
|
Bean bean(clas,"",clas,scope,false,true,name);
|
ConfigurationData::getInstance()->ffeadContext.addBean(bean);
|
ConfigurationData::getInstance()->controllerObjectMap[name][url] = clas;
|
logger << ("Adding Controller for " + url + " :: " + clas) << std::endl;
|
}
|
else
|
{
|
std::string from = cntrls.at(cntn).getAttribute("from");
|
StringUtil::trim(from);
|
std::string to = cntrls.at(cntn).getAttribute("to");
|
StringUtil::trim(to);
|
if(to.find("*")!=std::string::npos || to.find("regex(")!=std::string::npos)
|
{
|
logger << ("Skipping controller mapping as it contains */regex function") << std::endl;
|
to = "";
|
}
|
if(from!="" && to!="")
|
{
|
normalizeUrl(name, from);
|
ConfigurationData::getInstance()->mappingObjectMap[name][from] = to;
|
logger << ("Adding Mapping for " + from + " :: " + to) << std::endl;
|
}
|
from = cntrls.at(cntn).getAttribute("fromext");
|
StringUtil::trim(from);
|
to = cntrls.at(cntn).getAttribute("toext");
|
StringUtil::trim(to);
|
if(to.find("*")!=std::string::npos || to.find("regex(")!=std::string::npos)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.