On 03.07.2009, at 13:31, Tom Sugden wrote:
>
> Hi Dennis, etc,
> [...]
>
> I think Parsley currently has the better design. It can be used in a
> manner that is even simpler than Swiz, imposing less dependency on the
> library itself into your application code. This is because Parsley
> uses an mx:Object instead of a BeanLoader, and uses a normal
> EventDispatcher together with metadata instead of the static methods
> that Swiz uses for global event dispatching and listening. The
> approach to view wiring is also subtly different. In Parsley, you
> dispatch a bubbling event to instruct Parsley to begin "managing" that
> view. The view then enters an IoC context and can partake in any of
> the features of Parsley, such as lifecycle methods, message handling
> and interception, etc.
>
Swiz also supports bubbling events since the 0.6 release.
Already part of SVN but not released yet is the new IDispatcherBean
interface.
When for instance your controller implements that interface you have
to implement a setter for a dispatcher:IEventDispatcher which can be
used to dispatch events right from this instance instead of
Swiz.dispatchEvent. Also the BeanLoader contains a protected member of
the dispatcher so you could set it already within the BeanLoader
declarations.
Cheers,
Sönke
[...]