Vincent Thinking

          All about Vincent's work and life

            BlogJava :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理 ::
            34 隨筆 :: 0 文章 :: 183 評論 :: 0 Trackbacks
          public ? class ?ActionMapperFactory? {
          ????
          ????
          protected ? static ? final ?Log?LOG? = ?LogFactory.getLog(ActionMapperFactory. class );

          ????
          private ? static ? final ?HashMap?classMap? = ? new ?HashMap();

          ????
          public ? static ?ActionMapper?getMapper()? {
          ????????
          synchronized ?(classMap)? {
          ????????????String?clazz?
          = ?(String)?Configuration.get(WebWorkConstants.WEBWORK_MAPPER_CLASS);
          ????????????
          try ? {
          ????????????????ActionMapper?mapper?
          = ?(ActionMapper)?classMap.get(clazz);
          ????????????????
          if ?(mapper? == ? null )? {
          ????????????????????mapper?
          = ?(ActionMapper)?ObjectFactory.getObjectFactory().buildBean(clazz,? null );
          ????????????????????classMap.put(clazz,?mapper);
          ????????????????}


          ????????????????
          return ?mapper;
          ????????????}
          ? catch ?(Exception?e)? {
          ????????????????String?msg?
          = ? " Could?not?create?ActionMapper:?WebWork?will?*not*?work! " ;
          ????????????????LOG.fatal(msg,?e);
          ????????????????
          throw ? new ?RuntimeException(msg,?e);
          ????????????}

          ????????}

          ????}

          }


          明白的告訴我一下,謝謝. 覺的有點(diǎn)問題...
          posted on 2006-05-31 22:55 Vincent Thinking 閱讀(1749) 評論(0)  編輯  收藏 所屬分類: JAVA

          只有注冊用戶登錄后才能發(fā)表評論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 平遥县| 望奎县| 珲春市| 仙游县| 南涧| 星座| 琼结县| 博野县| 伊宁县| 高雄市| 石泉县| 曲靖市| 阜南县| 芜湖市| 睢宁县| 中卫市| 浦江县| 苏尼特右旗| 北辰区| 腾冲县| 泗水县| 健康| 莱西市| 凉山| 东光县| 泰安市| 石门县| 湟中县| 宜兰市| 中阳县| 淳安县| 德保县| 旺苍县| 民丰县| 台江县| 田东县| 大庆市| 焦作市| 肥东县| 卓尼县| 鹤山市|