隨筆 - 0  文章 - 0  trackbacks - 0
          <2025年6月>
          25262728293031
          1234567
          891011121314
          15161718192021
          22232425262728
          293012345

          vooctj@gmail.com

          留言簿

          文章分類(2)

          文章檔案(2)

          搜索

          •  

          最新評論

          applicationContext.xml
          <?xml version="1.0" encoding="UTF-8"?>
          <beans xmlns="http://www.springframework.org/schema/beans"
                 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                 xmlns:aop="http://www.springframework.org/schema/aop"
                 xmlns:tx="http://www.springframework.org/schema/tx"
                 xmlns:context="http://www.springframework.org/schema/context"
                 xsi:schemaLocation="http://www.springframework.org/schema/beans
                                     http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
                                     http://www.springframework.org/schema/aop 
                                     http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
                                     http://www.springframework.org/schema/context 
                                     http://www.springframework.org/schema/context/spring-context-2.5.xsd
                                     http://www.springframework.org/schema/tx 
                                     http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">
          <!-- transactionManager -->
          <bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
          <property name="sessionFactory">
          <ref bean="sessionFactory"/>
          </property>
          </bean>
          <!-- advice -->
          <tx:advice id="tx" transaction-manager="transactionManager">
          <tx:attributes>
          <tx:method name="save*"  isolation="DEFAULT" propagation="REQUIRED" read-only="false"/>
          </tx:attributes>
          </tx:advice>
          <!-- sessionFactory -->
          <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
          <property name="configLocation" value="classpath:hibernate/hibernate.cfg.xml">
          </property>
          </bean>
          <!-- aop  -->
          <aop:config>
          <aop:pointcut expression="execution(* com.vooctj.service.impl.*.*(..))" id="perfom"/>
          <aop:advisor advice-ref="tx" pointcut-ref="perfom"/>
          </aop:config>
          <!-- entity studentDAO -->
          <bean id="studentDAO" class="com.vooctj.dao.impl.StudentDAOImpl">
          <property name="sessionFactory">
          <ref bean="sessionFactory"/>
          </property>
          </bean>
          <!-- entity studentService-->
          <bean id="studentService" class="com.vooctj.service.impl.StudentServiceImpl">
          <property name="studentDAO">
          <ref bean="studentDAO"/>
          </property>
          </bean>
          </beans>
          posted @ 2012-12-15 17:24 vooctj 閱讀(70) | 評論 (0)編輯 收藏

          Application Framework

          通過提供開放的開發(fā)平臺,Android使開發(fā)者能夠編制極其豐富和新穎的應用程序。開發(fā)者可以自由地利用設備硬件優(yōu)勢、訪問位置信息、運行后臺服務、設置鬧鐘、向狀態(tài)欄添加通知等等,很多很多。

          開發(fā)者可以完全使用核心應用程序所使用的框架APIs。應用程序的體系結(jié)構(gòu)旨在簡化組件的重用,任何應用程序都能發(fā)布他的功能且任何其他應用程序可以使用這些功能(需要服從框架執(zhí)行的安全限制)。這一機制允許用戶替換組件。

          所有的應用程序其實是一組服務和系統(tǒng),包括:

          • 視圖(View)——豐富的、可擴展的視圖集合,可用于構(gòu)建一個應用程序。包括包括列表、網(wǎng)格、文本框、按鈕,甚至是內(nèi)嵌的網(wǎng)頁瀏覽器
          • 內(nèi)容提供者(Content Providers)——使應用程序能訪問其他應用程序(如通訊錄)的數(shù)據(jù),或共享自己的數(shù)據(jù)
          • 資源管理器(Resource Manager)——提供訪問非代碼資源,如本地化字符串、圖形和布局文件
          • 通知管理器(Notification Manager——使所有的應用程序能夠在狀態(tài)欄顯示自定義警告
          • 活動管理器(Activity Manager——管理應用程序生命周期,提供通用的導航回退功能
          posted @ 2012-01-07 01:23 vooctj 閱讀(62) | 評論 (0)編輯 收藏
          僅列出標題  
          主站蜘蛛池模板: 新化县| 盘锦市| 阳春市| 安康市| 淮滨县| 佛学| 古蔺县| 香港| 青岛市| 合阳县| 澎湖县| 建阳市| 双鸭山市| 成武县| 兖州市| 雷波县| 扎囊县| 边坝县| 万源市| 安吉县| 同仁县| 平塘县| 庐江县| 灵台县| 弥勒县| 长春市| 阿合奇县| 田林县| 辽宁省| 延长县| 扎兰屯市| 五指山市| 安福县| 洛南县| 二连浩特市| 砚山县| 麻栗坡县| 保德县| 太谷县| 历史| 探索|