摘要:
閱讀全文
摘要: 在上篇《Groovy解惑——closure中的delegate》中,我幫大家講解了delegate是什么以及其作用。
本篇將講解一下closure中的owner,以及this,delegate以及owner三者間的關系。
閱讀全文
摘要: 曾經很多Groovy開發者問我closure中的delegate是什么,有什么作用?
通過研究兩個例子,我們就清楚了 :)
閱讀全文
Groovy1.5.1 fix了Groovy1.5發布后的一些bug,并進一步提升性能(尤其是在多個CPU的環境下)。
這是Groovy Team送給我們這些Groovy Fans的圣誕禮物,大家不要錯過噢 :)
下載地址:http://dist.groovy.codehaus.org/distributions/groovy-binary-1.5.1.zip
附:
朝花夕拾——Groovy & Grails
摘要: 由于這次發布的Groovy版本包含了很多Java5的特性,并修正(fix)了很多錯誤,且增添了許多新特性,1.1這個版本號已經無法反映這么多令人振奮的改進了,所以Groovy Team決定將本次發布的Groovy版本定為1.5。注意目前最新穩定版為Groovy1.5了,而非之前的Groovy1.0。
閱讀全文
摘要: 為了進一步提高Groovy的穩定性,Groovy Team決定再發布一個版本——Groovy1.1RC3,Groovy1.1Final即將到來,敬請期待!
閱讀全文
摘要: 由于Java一種單繼承的語言,即子類只能繼承一個父類,所以無法重用兩個類的實現,Groovy在這方面做了些改進,引入了Mixin
現在讓我們看一下Groovy中的Mixin的威力吧:
閱讀全文
摘要: Groovy學習之資料篇
閱讀全文
摘要: 從JDK1.5開始,Java就擁有了一種新特性——Annotations,想必Java老手們對它并不陌生吧,在各大框架比如Spring、Hibernate等中均提供了自己的Annotations供大家使用,Java5+使用Annotations 是十分平常的事情,因為Annotations本身就是Java的一種特性,但基于Java的動態語言要使用Annotations就比較困難了,目前只有Groovy能夠做到這點。
接下來以使用Guice為例,看一下在Groovy中如何使用Annotations,其實跟在Java中使用Annotations沒什么兩樣 :)
注意:請將guice-1.0.jar和aopalliance.jar加到classpath中。如果您嫌麻煩,可以將這兩個Jar文件放到
\lib目錄下。 閱讀全文
摘要: Groovy & Grails技術圖書 閱讀全文
摘要: 國內首部Grails圖書,本書作者就是本項技術的創始人,是具有暢銷書潛力的重量級圖書;.
借助動態腳本語言Groovy,在Grails項目創始人帶領下應用Grails框架進行Java敏捷開發。..
讓Java開發者擁抱敏捷 牽手高效 ,具備RoR的敏捷,極大地提高Java開發效率。可與Java無縫集成,無須丟棄已有的Java經驗。擁有JAX2007創新大獎Groovy動態語言的強大支持。基于Spring/Hibernate/Quartz/SiteMesh等流行框架。可部署于任何Java Web容器,擁有企業級應用性能與穩定。...
閱讀全文
摘要: Groovy面世至今已有4年了,其間風波不斷,但Groovy Team毅然挺過了那段灰色的歲月,迎來了金色的2007年。
即將發布的Groovy1.1Final將為2007年劃上一個完美的句號,我堅信2008年將是Groovy & Grails年! 閱讀全文
摘要: 由于內部類存在語義缺陷,所以JCP決定將在Java7或Java8中添加對Closure的支持。而 Groovy一開始就洞察到了這點,所以在Groovy中沒有內部類,只有Closure,不過為了更好地兼容Java,將在未來的某個版本中支持內部類。現在讓我們看看Groovy是如何滿足Java開發人員對匿名類的需求的。 閱讀全文
摘要: Groovy1.1 RC2如期發布,本次發布大幅改善了性能,GroovyConsole和GroovyShell的易用性以及XML的處理,下個發布的版本就是Groovy1.1 Final了!敬請期待!
下載地址:http://dist.groovy.codehaus.org/distributions/groovy-binary-1.1-rc-2.zip 閱讀全文
摘要: Groovy & Grails開發利器 閱讀全文
摘要: IntelliJ IDEA 7 注冊機下載 閱讀全文
經歷將近1年的漫長等待,總算盼到了Grails 1.0 RC1的發布,Grails 1.0 Final將在11月份發布。
Grails 1.0 RC1的改進很大:
1,ORM終于擁有自己的DSL(domain specific language)了
2,用戶能夠很方便地使用過濾器了
3,標簽庫已經能夠支持命名空間,body變量等
4,控制器能夠支持多維參數對象了
5,URL Mapping支持URL與視圖的直接映射了
6,GORM支持了悲觀鎖,并能控制session的刷新(flush)
7,我們能夠通過Config.groovy配置JNDI數據源了
由于Groovy的性能的不斷提升以及Grails自身的不斷改進,
從各個角度來看,此時此刻的Grails已不再是當初那個蹣跚學步的小男孩兒了!
順便提一下,《Grails權威指南》將于本月末出版,敬請期待!
下載地址:http://dist.codehaus.org/grails/grails-bin-1.0-RC1.zip
附:朝花夕拾——Groovy & Grails
從開始接觸Groovy Console那天起,就發現它不顯示當前行的行號,有些不方便。昨天我忍無可忍,與其等Groovy Team出手,還不如自己動手來得快,所以抽了點時間給它加了這個功能,該補丁已被Groovy Team接納,但暫時還沒加列號,這是因為我還沒搞清Groovy報錯時的列號指的是什么,等弄清了再加吧,省得誤人子弟 :)
還不了解Groovy的朋友可以看一下朝花夕拾——Groovy & Grails
從Groovy1.1RC2開始能顯示代碼的行號(請看右下角)了,希望大家喜歡 :)

摘要: Groovy的這次發布最引人注目的特性有:
1. Groovy1.1RC1的性能又得到了進一步的提升,與前一個版本Groovy1.1beta3相比提升了15%~45%
2. 語法更簡潔了
3. GroovySh的互動性更強,無需go就可以執行代碼
4. GroovyConsole的輸出過濾了無用的異常信息
Groovy1.1RC1發布了,Groovy1.1Final還會遠嗎?
Groovy1.1Final將于11月中旬發布,敬請期待! 閱讀全文
Composition on Rails: The Groovy Side of SAP NetWeaver
Moya Watson SAP Employee
Business Card
Company: SAP
Posted on Oct. 08, 2007 01:04 PM in SAP NetWeaver Platform, Scripting Languages
If you missed meeting Will Gardella at TechEd this year, you might have missed the buzz about Composition on Rails, which adds the Groovy
scripting language and the "Rails-like"Grails Web application
framework to the SAP NetWeaver Composition Environment to achieve quick
and agile development on the platform.
If you're wondering
about the relevance of using Grails within the SAP NetWeaver
environment, consider this: the SAP NetWeaver prototyping team relied
on Grails when building the high-profile Eventus
prototype. So while you're not likely to build extremely complex
applications using scripting environments such as that offered by
Composition on Rails, you can quickly turn out a prototype -- for one
example -- and the benefits of this can be manifold. Look for more on
that later...
In the meantime, head on over to Composition on Rails
in the Contributor Corner to read more about the benefits of using
Composition on Rails, find answers to your questions or ask new ones,
get the code, start playing around with the framework, and step in to
create your first application. As the team is also soliciting your
feedback and feature requests, this is an absolutely great opportunity
to influence this combination of a new(ish) scripting technology with
SAP NetWeaver.
Between this and the new Developer Subscription,
there's no reason not to get started building agile applications with
SAP NetWeaver today.
Moya Watson works on the SAP NetWeaver Imagineering team in Palo Alto, CA.
原文地址:https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/7526
附:朝花夕拾——Groovy & Grails