PureMVC Architects Lounge

PureMVC Manifold => MultiCore Version => Topic started by: skasssam on July 21, 2010, 11:24:22



Title: One faultEvent handler for all my Proxies
Post by: skasssam on July 21, 2010, 11:24:22
Hi,
I am using RemoteObjects in my proxies and I want to use the same FaultEvent handler for all my proxies. Part of the logic for the FaultEvent handler will be sending a notification to the application depending on what the fault is. My question is where should my faultHandler go? In a Mediator? a Command? or a standalone class? If standalone class, how do I call sendNotification from a standalone class?

Thanks In Advance
Shinan






Title: Re: One faultEvent handler for all my Proxies
Post by: puremvc on July 22, 2010, 07:50:14
I'd make an abstract proxy with this fault handler defined on it and then extend it for all the other proxies that need it.

-=Cliff>


Title: Re: One faultEvent handler for all my Proxies
Post by: skasssam on July 22, 2010, 08:46:54
Thanks Cliff,

Sorry, after I read your response it was painfully obvious I overlooked the most straightforward solution.

Again. Thanks for your help & patience. After I try it, I will report back.