CDN加速镜像 | 设为首页 | 加入收藏夹
当前位置: 首页 资源下载 WEB源码 JSP源码/Java

文件名称:FCA_Greysh_Configuration

  • 所属分类:
  • 标签属性:
  • 上传时间:
    2012-11-16
  • 文件大小:
    1.01mb
  • 已下载:
    0次
  • 提 供 者:
  • 相关连接:
  • 下载说明:
    别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容来自于网络,使用问题请自行百度

简介

JavaEE在开发的时候,如果是系统内部常量,一般提倡用枚举常量类,写在单独的类中,但是经常要修改的变量,比如数据源配置,如果存在数据库中,有种浪费。但是存在TXT中扩展性不好,就笔者观察,一般的程序员都喜欢把经常修改的常量存在xml文件或者properties文件。



存在xml文件最大的好处是扩展性很好,一般用sax或者dom这两个方向的框架,比如DOM4J,JDOM等。Sun推出的JAXM(Java API for XML Messaging)也是用的DOM4J。由于SAX的处理方式类似流媒体,是逐行的,不需要全部加载。而DOM是全部加载在内存,生成树。因而SAX的读取比DOM性能好,但是修改的话DOM略胜一筹。properties文件的扩展性不如xml,但是有很多xml没法实现的优势,比如加密之类的~



Helloworld

笔者根据自己开发中感受,写了一个工具包,用来体现读取xml或者properties的流程,大家在使用的时候记得修改文件路径。一共包含五个文件.本demo主要是用来模拟读取数据库的账户和密码的,读者可以在此基础上扩展。-Brief introduction

JavaEE development at the time, if the system constants are generally used to promote constant enumeration type, write in a separate category, but often want to modify the variables, such as the data source configuration, if the database exist, in one waste. But the existence of bad TXT extension on my observation, the programmers in general are often modified to enjoy the constant existence xml documents or document properties.



Xml files exist to expand the biggest benefits of a good sax or dom in general with the direction of these two frameworks, such as DOM4J, JDOM, etc.. Sun introduced JAXM (Java API for XML Messaging) is also used DOM4J. SAX approach because a similar streaming media, are progressive and do not need the full load. And DOM are all loaded in memory, spanning tree. SAX and thus the better read performance than the DOM, but DOM is better if modified. properties of paper as an extension of xml, but can not realize there is a lot of the advanta
(系统自动生成,下载前可以参看下载内容)

下载文件列表

FCA_Greysh_Configuration/
FCA_Greysh_Configuration/lib/
FCA_Greysh_Configuration/lib/commons-collections-3.2.1.jar
FCA_Greysh_Configuration/lib/commons-configuration-1.6.jar
FCA_Greysh_Configuration/lib/commons-lang-2.4.jar
FCA_Greysh_Configuration/lib/commons-logging-1.0.4.jar
FCA_Greysh_Configuration/src/
FCA_Greysh_Configuration/src/com/
FCA_Greysh_Configuration/src/com/greysh/
FCA_Greysh_Configuration/src/com/greysh/config/
FCA_Greysh_Configuration/src/com/greysh/config/Jdom.java
FCA_Greysh_Configuration/src/com/greysh/config/LoadConfig.java
FCA_Greysh_Configuration/src/com/greysh/config/Property.java
FCA_Greysh_Configuration/src/config.properties
FCA_Greysh_Configuration/src/config.xml

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 搜珍网是交换下载平台,只提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。更多...
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或换浏览器;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*快速评论: 推荐 一般 有密码 和说明不符 不是源码或资料 文件不全 不能解压 纯粹是垃圾
*内  容:
*验 证 码:
搜珍网 www.dssz.com