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: One faultEvent handler for all my Proxies  (Read 3873 times)
skasssam
Jr. Member
**
Posts: 18


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




Logged
puremvc
Global Moderator
Hero Member
*****
Posts: 2871



View Profile WWW Email
« Reply #1 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>
Logged
skasssam
Jr. Member
**
Posts: 18


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