Griffon 1.1.0 发布,利用Groovy开发Java桌面应用

jopen 12年前

Griffon团队宣布Griffon 1.1.0 发布,这是1.x系列的最新发布。

Griffon是一个应用程序框架,可在JVM中开发桌面应用,选用Groovy作为主要语言。

此版本带来了新的功能,支持i18n内容和资源,并拥有一个更好的体验。

i18n插件已经被纳到griffon.core.i18n核心包中。每一个

Griffon应用现在都可以使用i18n。
Paired with i18n we get another set of APIs: resource management and injection. It's now possible to define resources such as images, icons, colors that should become available on a Model class, but instead of putting them on code you define them on external external resource files. These resource files happen to be Locale aware, exactly like their messages (i18n) counterparts. Resources may be injected programmatically or automatically by annotating properties/fields with @InjectedResource. The Griffon Guide also includes a brand new chapter explaining all options and formats.

Then there's the ActionManager incubated by the actions plugin. This component is capable of harvesting controller actions (whether they are closures or methods, doesn't matter) and create toolkit specific Actions that are added to builders using a naming convention. All aspects of an action (name, description, icon, etc) are handled by externalized resources (leveraging the new i18n features). Both Swing and JavaFX plugins provided custom support for their respective ActionManagers.

Be aware that some plugins should not be used anymore (i18n, i18n-support, actions) as they are no longer compatible with Griffon. The spring and the dialogs have changed to reflect the new i18n APIs, it's important that you upgrade to their latest releases when moving to Griffon 1.1.0.

Finally the Griffon Guide has been migrated to grails-doc 2.x, resulting in a more interactive experience.

Full listing of bugs fixed in this release can be found at [http://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=11833&version=18430]
Full release notes are located here.
You can download the Griffon distribution from the download page.