Package org.g4studio.core.properties

Examples of org.g4studio.core.properties.PropertiesHelper


   *
   * @param jp
   * @param ex
   */
  public synchronized void interceptException(JoinPoint jp, Throwable ex) {
    PropertiesHelper g4PHelper = PropertiesFactory.getPropertiesHelper(PropertiesFile.G4);
    String exceptionMonitor = g4PHelper.getValue("exceptionMonitor");
    if (exceptionMonitor.equals("0")) {
      return;
    }
    String clazzString = jp.getTarget().getClass().getName();
    String methodName = jp.getSignature().getName();
View Full Code Here


  /**
   * 初始化ApplicationContext对象
   * @throws Exception
   */
  private static void initApplicationContext() throws Exception {
      PropertiesHelper pHelper = PropertiesFactory.getPropertiesHelper(PropertiesFile.G4);
      String forceLoad = pHelper.getValue("forceLoad", SystemConstants.FORCELOAD_N);
    try {
      if (forceLoad.equalsIgnoreCase(SystemConstants.FORCELOAD_N)) {
        log.info("系统正在初始化Spring...");
      }
      applicationContext = new ClassPathXmlApplicationContext(new String[] { "config\\global.config.xml" });
View Full Code Here

    HttpServletRequest request = (HttpServletRequest)pageContext.getRequest();
    UserInfoVo userInfo = WebUtils.getSessionContainer(request).getUserInfo();
    String contextPath = request.getContextPath();
    request.setAttribute("webContext", contextPath);
    Dto dto = new BaseDto();
    PropertiesHelper pHelper = PropertiesFactory.getPropertiesHelper(PropertiesFile.G4);
    String micolor = pHelper.getValue("micolor", "blue");
    dto.put("micolor", micolor);
    String urlSecurity = pHelper.getValue("urlSecurity", "1");
    dto.put("urlSecurity", urlSecurity);
    dto.put("urlSecurity2", urlSecurity2);
    dto.put("userInfo", userInfo);
    dto.put("ajaxErrCode", G4Constants.Ajax_Timeout);
    dto.put("requestURL", request.getRequestURL());
    dto.put("contextPath", contextPath);
    dto.put("doctypeEnable", doctypeEnable);
    dto.put("extDisabled", G4Utils.isEmpty(extDisabled) ? "false" : extDisabled);
    dto.put("title", G4Utils.isEmpty(title) ? "G4Studio" : title);
    dto.put("jqueryEnabled", G4Utils.isEmpty(jqueryEnabled) ? "false" : jqueryEnabled);
    dto.put("showLoading", G4Utils.isEmpty(showLoading) ? "true" : showLoading);
    dto.put("uxEnabled", uxEnabled);
    dto.put("exportExceptionWindow", exportExceptionWindow);
    dto.put("fcfEnabled", fcfEnabled);
    dto.put("exportParams", exportParams);
    dto.put("exportUserinfo", exportUserinfo);
    dto.put("isSubPage", isSubPage);
    dto.put("pageLoadMsg", WebUtils.getParamValue("PAGE_LOAD_MSG", request));
    String titleIcon = WebUtils.getParamValue("TITLE_ICON", request);
    dto.put("titleIcon", G4Utils.isEmpty(titleIcon) ? "G4Studio.ico" : titleIcon);
    if (exportParams.equals("true")) {
      dto.put("paramList", WebUtils.getParamList(request));
    }
    //String agent = request.getHeader("user-agent");
    //dto.put("firefox", agent.indexOf("Firefox") == -1 ? "false" : "true");
    PropertiesHelper p = PropertiesFactory.getPropertiesHelper(PropertiesFile.G4);
    dto.put("extMode", p.getValue("extMode", TagConstant.Ext_Mode_Run));
    dto.put("runMode", p.getValue("runMode", TagConstant.RUN_MODE_NORMAL));
    Dto themeDto = new BaseDto();
    Dto resultDto = new BaseDto();
    if(G4Utils.isNotEmpty(userInfo)){
      themeDto.put("userid", userInfo.getUserid());
      resultDto = armTagSupportService.getEauserSubInfo(themeDto);
View Full Code Here

TOP

Related Classes of org.g4studio.core.properties.PropertiesHelper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.