Thursday, December 23, 2010

Blossom 1.2 released

Magnolia Blossom 1.2 has just been released.

This release brings a bunch of new features and fixes two important bugs. A new sample is also available, its a webapp project that requires nothing more than a plain maven installation to start up.

The biggest new feature is spring integration in content2bean bringing dependency injection and AOP. This can  be used directly from your spring xml files to load beans from the repository. When changes are made in the repository the bean will be transparently reloaded. This allows for easy reconfiguration of a running application.

The new annotation @InitSaveHandler allows you to customize the savehandler to use for saving a dialog.

There's also a few additions that make writing controllers even easier. For instance you can get the Content object passed directly to your handler method and you can return redirects by returning the uuid prefixed with the name of the repository. As an example; return "website:" + content.getUUID(); would return a redirect to a page.

The sample is available in our subversion repository. Check out the sources and run mvn jetty:run-war to start it up. Consult the reference documentation for more details.

Cheers and merry X-mas!