News

2009-06-07:    Spicelib 2.0 adds XML-to-Object Mapper

The new Spicelib version, now part of the Parsley release, contains an entirely new module. It allows you to map XML structures to AS3 classes - in both directions. It comes with convenient defaults covering the most common use cases, but can be easily customized and extended. The default settings allow to map properties of AS3 classes to attributes or child text nodes of XML elements. Validation can be enhanced through AS3 metadata, like the [Required] tag which can be placed on properties, marking the associated XML atrribute or child node as required accordingly. You can also build a hierarchical structure of nested mappers for complex XML structures. The framework serves as a basis for the XML configuration support in Parsley, but can also be used on its own. For details see the Parsley Developer Manual.

The old Logging Framework of Spicelib 1.x has been modified. The core part is now a mere wrapper that can delegate to the old Spicelib Logging Framework for Flash Applications and to the Flex Logging API for Flex Applications. This is similar to logging wrappers in the Java world like Commons Logging. It allows you to add log statements to reusable library classes which might be used with or without Flex. The changes in the Logging Framework are the only changes in Spicelib 2.0 which are not fully backwards compatible to Spicelib 1.x.

Finally the Reflection API has been slightly enhanced. You can now purge the internal Reflection cache per ApplicationDomain, thus allowing for easy cleanup in modular applications. The other modules of Spicelib haven't changed at all.

Spicelib is now part of the Parsley release, the two projects will have a common release cycle from now on and share the same SVN repository and Jira issue tracker project. You can still use Spicelib separately though, it does not have any dependencies on Parsley.

You can download the new version here.


News Overview