PureMVC Architects Lounge

Announcements and General Discussion => Fabrication => Topic started by: Tony DeFusco on March 30, 2009, 05:12:26



Title: Question regarding using Fabrication and PureMVC Console together
Post by: Tony DeFusco on March 30, 2009, 05:12:26
Hello.

I'd like to use Kap Lab Pure MVC console as a tool to debug my Fabrication application.  To utilize PureMVC Console, one has to create a class that overrides fr.kapit.puremvc.as3.patterns.facade.DebugFacade.  (See http://lab.kapit.fr/display/puremvcconsole/Integration+Guide (http://lab.kapit.fr/display/puremvcconsole/Integration+Guide))

However, Fabrication already overrides the org.puremvc.as3.multicore.patterns.facade.Facade class.

What is the best way to deal with this inheritance issue so that I can use PureMVC console to debug my Fabrication application?

Thanks in advance.
Tony


Title: Re: Question regarding using Fabrication and PureMVC Console together
Post by: Darshan Sawardekar on April 01, 2009, 08:06:51
Hey Tony,

What is the best way to deal with this inheritance issue so that I can use PureMVC console to debug my Fabrication application?

The issue with inheritance with KapLab PureMVC console is a little hard. I am extending out the main actors in PureMVC with custom subclasses for Model, View, and Controller. And as you have noticed the KapLab classes do similar things for the logging. I wasn't able to get the source code for the KapLab console so not sure if there is a plausible solution...

One thing you can do to see the flow of notifications in an application, is to use Interceptors[1]. You could setup an Interceptor with something like,

:
override public function intercept():void {
   trace(notification.getName() " + with body " + notification.getBody());
   proceed();
}

peace,
darshan

[1] : http://code.google.com/p/fabrication/wiki/Interceptors