From: Keats <ke...@su...> - 2003-07-28 20:59:03
|
The point is that you're not getting a Variable, you're getting a value that will be referenced through a Variable. A variable is a specific thing in WM and I don't want to muddy the concepts any more than we have to. If you don't like getResource() how about just get()? Keats -------Original Message------- From: Marc Palmer <ma...@an...> Sent: 07/28/03 04:44 PM To: ke...@su..., la...@op... Subject: Re: Re: [Webmacro-devel] ContexTool change info Wiki > > On Mon, 28 Jul 2003 16:37:59 -0400 (GMT), Keats <ke...@su...> wrote: > I have to quibble with the method name getVariable(). We're not getting > a Variable, we're getting an Object. More specifically we're getting an > object that is deployed as a resource to the context. This may seem > trivial, but I think this name could be a major source of confusion in > the future (as some of our other names have been). I see your point, but surely that's what we -are-actually doing. i.e. the things that are in the Context are colloquially called "variables" (i.e. template variables) and as such I think it makes sense. > So maybe it should be: > > AutoContextLoader.getResource() > > or alternatively: > > getHelper() > getPlugin() > getValue() > getObject() > get() > retrieve() > getThingie() > ... > > Since what can be returned is totally generic, it's hard to come up with > a meaningful name. getResource() seems best to me, but any of the above > would be better than getVariable. getResource sounds too much like loading files/URLs IMO. How about newContextVariable( name, context) ? Marc -- Marc Palmer Contract Java Consultant/Developer w a n g j a m m e r s java and web software design experts with an ethical outlook http://www.wangjammers.org ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ Webmacro-devel mailing list Web...@li... https://lists.sourceforge.net/lists/listinfo/webmacro-devel > |