Skip to main content
Participant
June 5, 2009
Question

Hooking into all remote objects

  • June 5, 2009
  • 1 reply
  • 1700 views

I want to find way to reference all RemoteObjects created throughout the life of the app regardless of their purpose, creator, etc...

My ultimate goal is to be able to record all server side requests and responses that goes through the RemoteObjects, which is why I am trying to find a way to get a handle on all the RemoteObjects which communicate with remote servers.

At a high level, does Cairngorm have a method for doing this?

Thanks.

This topic has been closed for replies.

1 reply

Participating Frequently
August 21, 2009

Old post, but I'll throw up a response.  The answer is no.  Cairngorm is simply a code architecture, and does not provide that level of functionality that you might find in a more feature-rich framework.

From what I've done in the past is not focus on the UI layer at all, but architect the application layer to funnel ALL requests from the UI through a single factory object that then re-routes the request to the appropriate component.  This way, you can log all event at your application layer.

Participating Frequently
November 10, 2009

You can do that using Parsley. Take a look on how it's done in the Cairngorm 3 extention to Parsley, the GlobalRemoteObjectFaultHandler ObjectDefinition:


http://opensource.adobe.com/wiki/display/cairngorm/ModularSampleApplicationExplained

>Error Handling