java 板


LINE

最近在學著使用的工具, 一邊翻manual也一邊翻譯成文件,順便推廣給版上的同好們。 英文原文來自 http://xdoclet.sourceforge.net/xdoclet/index.html ──────────────────────────────── Welcome! What is XDoclet? XDoclet is an open source code generation engine. It enables Attribute-Oriented Programming for java. In short, this means that you can add more significance to your code by adding meta data (attributes) to your java sources. This is done in special JavaDoc tags. 主要是用來產生自動產生code的引擎, 從撰寫javadoc的屬性中,可以增加程式碼的意義。 XDoclet will parse your source files and generate many artifacts such as XML descriptors and/or source code from it. These files are generated from templates that use the information provided in the source code and its JavaDoc tags. 從樣板產生需要的許多文件(如xml描述檔) XDoclet lets you apply Continuous Integration in component-oriented development. Developers should concentrate their editing work on only one Java source file per component. 簡單來說 可以用修改一個檔案的方式完成相關一連串檔案的處理 減少一些多餘的處理過程。 This approach has several benefits: 這個方法的一些好處 1.You don't have to worry about out dating deployment meta-data whenever you touch the code. The deployment meta-data is continuously integrated. 你不需要擔心當你處理這些資料時會有過期的發佈 meta-data, 發佈的資料是持續性的處理。 2.Working with only one file per component gives you a better overview of what you're doing. If your component consists of several files, it's easy to lose track. If you have ever written an Enterprise Java Bean, you know what we mean. A single EJB can typically consists of 7 or more files. With XDoclet you only maintain one of them, and the rest is generated. 一個component只專注在一個檔案可以有助益你瞭解你正在做的事情的概要。 如果你的元件由多個檔案組合,容易漏掉其中幾個的蹤跡, 如果你曾經寫過EJB,你會知道我在說什麼。 單一EJB通常會帶有七個以上的檔案, 使用Xdoclet你只要處理其中一個,其他的就會被產生。 3.You dramatically reduce development time, and can concentrate on business logic, while XDoclet generates 85% of the code for you. 當XDoclet幫你產生85%程式碼時,你可以戲劇性的減少開發時間, 並且可以專注在企業邏輯, Currently XDoclet can only be used as part of the build process utilizing Jakarta Ant. 目前XDoclet只能在 ant 的 build access 被當作擴充的一項處理來使用。 Although XDoclet originated as a tool for creating EJBs, it has evolved into a general-purpose code generation engine. XDoclet consists of a core and a constantly growing number of modules. It is fairly straightforward to write new modules if there is a need for a new kind of component. 雖然XDoclet 原本是產生EJB的一個工具, 他逐漸形成通用的code產生引擎。 XDoclet 由一個核心跟不斷新增的模組構成。 你可以非常簡單地去寫新模組,如果新種類的component需要。 XDoclet comes with a set of modules for generation of different kinds of files. Users and contributors can write their own modules (or modify existing ones) if they wish to extend the functionality of XDoclet. XDoclet 帶來一群產生不同種類程式碼的模組, 使用者和貢獻者可以撰寫自己的模組(或修改已經存在的一些), 如果它們希望擴充XDoclet的功能。 ──────────────────────────────── 後面還有一段是使用XDoclet的幾個理由,摘要如下: 1.減少多餘的工作 2.使J2EE變得簡單 3.支援伺服器與工具 4.可擴充性 5.開放、分散式的開發 ──────────────────────────────── TonyQ 按: 我會研究這個主要是希望由 model的 java 檔的註解, 產生hibernate 的 hbm檔。 -- http://tony1223.no-ip.org:1986/JSPWiki/Wiki.jsp?page=XDoclet_1 -- What do you want to have ? / What do you have? 從書本中,你可以發現我的各種興趣。 從CD中,你可以瞭解我所喜歡的偶像明星。 或許從文字你很難以瞭解一個人,但從物品可以。 My PPolis , My past. http://ppolis.tw/user/Tony1223 --



※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.134.27.68 ※ 編輯: TonyQ 來自: 220.134.27.68 (06/08 00:58)







like.gif 您可能會有興趣的文章
icon.png[問題/行為] 貓晚上進房間會不會有憋尿問題
icon.pngRe: [閒聊] 選了錯誤的女孩成為魔法少女 XDDDDDDDDDD
icon.png[正妹] 瑞典 一張
icon.png[心得] EMS高領長版毛衣.墨小樓MC1002
icon.png[分享] 丹龍隔熱紙GE55+33+22
icon.png[問題] 清洗洗衣機
icon.png[尋物] 窗台下的空間
icon.png[閒聊] 双極の女神1 木魔爵
icon.png[售車] 新竹 1997 march 1297cc 白色 四門
icon.png[討論] 能從照片感受到攝影者心情嗎
icon.png[狂賀] 賀賀賀賀 賀!島村卯月!總選舉NO.1
icon.png[難過] 羨慕白皮膚的女生
icon.png閱讀文章
icon.png[黑特]
icon.png[問題] SBK S1安裝於安全帽位置
icon.png[分享] 舊woo100絕版開箱!!
icon.pngRe: [無言] 關於小包衛生紙
icon.png[開箱] E5-2683V3 RX480Strix 快睿C1 簡單測試
icon.png[心得] 蒼の海賊龍 地獄 執行者16PT
icon.png[售車] 1999年Virage iO 1.8EXi
icon.png[心得] 挑戰33 LV10 獅子座pt solo
icon.png[閒聊] 手把手教你不被桶之新手主購教學
icon.png[分享] Civic Type R 量產版官方照無預警流出
icon.png[售車] Golf 4 2.0 銀色 自排
icon.png[出售] Graco提籃汽座(有底座)2000元誠可議
icon.png[問題] 請問補牙材質掉了還能再補嗎?(台中半年內
icon.png[問題] 44th 單曲 生寫竟然都給重複的啊啊!
icon.png[心得] 華南紅卡/icash 核卡
icon.png[問題] 拔牙矯正這樣正常嗎
icon.png[贈送] 老莫高業 初業 102年版
icon.png[情報] 三大行動支付 本季掀戰火
icon.png[寶寶] 博客來Amos水蠟筆5/1特價五折
icon.pngRe: [心得] 新鮮人一些面試分享
icon.png[心得] 蒼の海賊龍 地獄 麒麟25PT
icon.pngRe: [閒聊] (君の名は。雷慎入) 君名二創漫畫翻譯
icon.pngRe: [閒聊] OGN中場影片:失蹤人口局 (英文字幕)
icon.png[問題] 台灣大哥大4G訊號差
icon.png[出售] [全國]全新千尋侘草LED燈, 水草

請輸入看板名稱,例如:Boy-Girl站內搜尋

TOP