亚洲免费在线-亚洲免费在线播放-亚洲免费在线观看-亚洲免费在线观看视频-亚洲免费在线看-亚洲免费在线视频

Configuration,J2EE通天塔的混亂之源

系統 2071 0

Java應用程序獲得配置信息的方式可謂千奇百怪,配置文件的安排也毫無章法,每個人或許都有自己的一套讀/寫配置信息的習慣做法?!叭绻麘贸绦蝮w系結構是巴別塔,配置就是讓巴別塔項目陷于混亂的‘語言’。”

————————

If architecture were to be the tower of babel, configuration is its language

Satya Komatineni (November 25, 2003 7:37AM PT)
? ? Permalink

As the story goes God devised multiple languages so that men can't build sturctures that span to the heavens. In our small world of programming architectures the men and women of the world are quite busy (with out much help from any Overseer) constructing a confusion of their own. The name of this confusion is called "Configuration".

The larger and more complex an architecture is the simpler its constituents need be. That means the key for complex programs are pluggable parts or pluggable functionality at run time. Almost like a self-evolving system. The key to accomplishing such a composition is configuration. We seem to invent for every configuration need a different configuration api.

Sometimes configuration is read from properties files. Some times from XML files. Sometimes from System.properties. Sometimes passed in as a properties object. Sometimes read from multiple config files. Sometimes libraries use a different confgiuration than applications.

Such diversity of configurations exists because it is fairly easy to read configuration at run time. So it is left to the individual programs and components to determine their own needs.

But I am realizing more and more that it is the configuration that holds an architecture together. When there all the parts and containers use the same understanding of a configuration then it is lot more easier to integrate parts from varieties of sources and manage them well. The key to this understanding is to arrive at a unified abstraction for configuration that is based on the "structure" of the data rather than the form. This insight is as important as knowing the difference between XML and an InfoSet.

Once the configuration is perceived as a hierarchical set of data nodes that are not tied to implementation, then it offers a great flexibility to know that every component and part in an application can use the simplest of the APIs to realize their configuration needs. Having an interface to configuration is very important as all the components of an application, including the container can use the same api.

You might parallel this to a windows Registry. It is subtly diffrent from a windows Registry. Befor going there let me say the only good thing I can say about windows Registry. Registry allowed "COM" components to succeed and florish. With out this common understanding it would have been difficult to accomplish to interoperate. Now the problem with Registry is not because it is one big blog, but because it is not an interface . Had that been an interface, application would have been able to pick and choose where to keep their own configuration without interfering with the rest. The second improvement is that this interface needs to be small.

Some of these aspects are discussed in greater detail at the following article at the following O'Reilly link

A Simplified Configuration Service



Trackback: http://tb.blog.csdn.net/TrackBack.aspx?PostId=2434


Configuration,J2EE通天塔的混亂之源


更多文章、技術交流、商務合作、聯系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號聯系: 360901061

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對您有幫助就好】

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長會非常 感謝您的哦?。?!

發表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 奇米在线观看视频 | 久久免费区一区二区三波多野 | 毛片免费全部免费观看 | 国产伦理一区二区三区 | 理论片 我不卡影院 | 久久婷婷综合中文字幕 | 国产玖玖视频 | 五月天国产| 国产精品18久久久久久久久久 | 一级毛片在线看 | 国产成人精品三级91在线影院 | 99视频国产热精品视频 | 毛片不卡一区二区三区 | 久久久国产亚洲精品 | 中文字幕一区二区三区免费看 | 欧美成人亚洲 | 在线观看国产精美视频 | 国产目拍亚洲精品一区麻豆 | 国产精品66| 欧美成人怡红院在线观看 | 天天干在线影院 | 曰本一级毛片免费 | 欧美国产一区二区 | 欧美日韩亚洲国产一区二区三区 | 成人免费牛牛在线视频 | 亚洲精品高清国产麻豆专区 | 牛人盗摄一区二区三区视频 | 欧美精品成人 | 日本一区二区三区高清福利视频 | 欧美日韩高清在线观看一区二区 | 中文字幕在线视频一区 | 九九九视频 | 日韩欧美国产精品第一页不卡 | 成人看片黄a免费 | 国产精品久久久久久久久齐齐 | www.黄视频| 久久伊人最新 | 寡妇野外啪啪一区二区 | 久久久久久久久亚洲 | 国产精品一久久香蕉产线看 | 四虎视频国产在线观看 |