Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Pages: [1]
Print
Author Topic: Question regarding using Fabrication and PureMVC Console together  (Read 6741 times)
Tony DeFusco
Newbie
*
Posts: 9


View Profile Email
« 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)

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
Logged
Darshan Sawardekar
Sr. Member
****
Posts: 85


View Profile Email
« Reply #1 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
Logged
Pages: [1]
Print