• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: WOAction Constructor
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WOAction Constructor


  • Subject: Re: WOAction Constructor
  • From: Andrew Lindesay <email@hidden>
  • Date: Fri, 12 Jun 2009 18:17:38 +1200

Hello Quinton;

Yes, I had imagined that. Do you think the responsibility for creating the context in the action is significant?

I'm working on some architectural-level changes to my JSON-RPC system and so I'm just wondering if this is an arbitrary decision or there is some significance? The 'handleActionRequestError' method is taking a WORequest and no WOContext. I get Lachlan's point as well, but the context is actively accessible in the WOAction and as you say it is not lazily created. Maybe the anticipation was that at some later point in time that it would be _possible_ to lazily create it if the constructor took WORequest.

cheers.

Out of design curiosity; can anybody tell me why WOAction constructor is taking a WORequest rather than a WOContext?
Because the context doesn't exist yet, it gets created by the WOAction constructor.

___ Andrew Lindesay www.lindesay.co.nz

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >WOAction Constructor (From: Andrew Lindesay <email@hidden>)
 >Re: WOAction Constructor (From: Q <email@hidden>)

  • Prev by Date: Re: WWDC - dinner tonight?
  • Next by Date: NullPropertyExcetion when saveChanges() ???
  • Previous by thread: Re: WOAction Constructor
  • Next by thread: Re: WOAction Constructor
  • Index(es):
    • Date
    • Thread