Re: WOAction Constructor
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