Skip to end of metadata
Go to start of metadata

Overview

Griffon 1.5.0 - is the latest release in the 1.x series

Dependencies

The following dependencies have been upgraded

  • groovy-all 2.2.1
  • ant 1.9.3
  • ant-launcher 1.9.3
  • ant-junit 1.9.3
  • gant_groovy2.2 1.9.10
  • spring-beans 3.2.7.RELEASE
  • spring-context 3.2.7.RELEASE
  • spring-context-support 3.2.7.RELEASE
  • spring-core 3.2.7.RELEASE

Features

Buildtime

External Resources

It's a well know fact that any resources files placed in griffon-app/resources get packaged with the application's jar. But what if you'd like your application to load resources that are not packaged in said jar? The answer is to place these resources under griffon-app/resources-external.

Files found under this location will still be available to the running application if you launched it via the run-app command. However, once an application has been packaged for distribution (such as with the griffon package zip command) these files will be found under <application_dir>/resources, allowing you to modify them directly if needed be.

Global Setting for Default Archetype

An archetype name is required as part of the command line options if you'd like to create develop an application that relies on an archetype that's not the default one. This can be a bit tiresome if you want to create multiple projects with the same archetype. For this matter, Griffon 1.5.0 has added a new compile time flag that can be used to specify the name of the default archetype if non is defined at the command prompt. For example, if you're developing multiple JavaFX applications place the following flag under $USER_HOME/.griffon/settings.groovy

The flag accepts the following variations for its value

  • <archetype_name>
  • <archetype_name>-<archetype_version>

@TestFor AST Transformation

There's a new AST transformation that eases up setting a test for artifact classes. This transformation assumes the class-under-test inherits from griffon.core.GriffonArtifact. The transformation injects a field of type griffon.core.GriffonApplication and name 'app', it will also automatically inject a field of the right type and with a conventional name, for example

The test class may override the default behavior injected by @TestFor, the following list summarizes the method signatures required by this ASt transformation

  • GriffonApplication createMockApplication()
  • void configMockApplication()
  • void setupClassUnderTest()
  • void cleanupClassUnderTest()

The last two methods are called during the @Before and @After steps respectively.

Runtime

There are no runtime changes in this release.

Compatibility

The following plugins need to be updated to their latest versions

  • spring

Sample Applications

Griffon 1.5.0 ships with 8 sample applications of varying levels of complexity demonstrating various parts of the framework. In order of complexity they are:

File Viewer

File Viewer is a simple demonstration of creating new MVCGroups on the fly.

Source: samples/FileViewer

To run the sample from source, change into the source directory and run griffon run-app from the command prompt.

GroovyEdit

GroovyEdit is an improved version of FileViewer that uses custom observable models.

Source: samples/GroovyEdit

To run the sample from source, change into the source directory and run griffon run-app from the command prompt.

Font Picker

Font Picker demonstrates form based data binding to adjust the sample rendering of system fonts.

Source: samples/FontPicker

To run the sample from source, change into the source directory and run griffon run-app from the command prompt.

Greet

Greet, a full featured Griffon Application, is a Twitter client. It shows Joint Java/Groovy compilation, richer MVCGroup interactions, and network service based data delivery.

Source: samples/Greet

To run the sample from source, change into the source directory and run griffon run-webstart from the command prompt. Because Greet uses JNLP APIs for browser integration using run-app will prevent web links from working.

SwingPad

SwingPad, a full featured Griffon Application, is a scripting console for rendering Groovy SwingBuilder views.

Source: samples/SwingPad

To run the sample from source, change into the source directory and run griffon run-app from the command prompt.

GroovyFXPad

GroovyFXPad, a full featured Griffon Application, is a scripting console for rendering GroovyFX views.

Source: samples/GroovyFXPad

To run the sample from source, change into the source directory and run griffon run-app from the command prompt.

FxBrowser

FxBrowser is a trivial JavaFX powered browser that demonstrates Griffon's integration with JavaFX.

Source: samples/FxBrowser

To run the sample from source, change into the source directory and run griffon run-app from the command prompt.

WeatherWidget

WeatherWidget demonstrates binding, threading and plugin usage.

Source: samples/WeatherWidget

To run the sample from source, change into the source directory and run griffon run-app from the command prompt.

Release Notes

1.5.0

 

  • No labels