> -----Original Message-----
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> Sent: November 17, 2000 12:30 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Are ActionMapping's immutable ?
> 
> Matthias Kerkhoff wrote:
> 
> > Is an ActionMapping, once registered in ActionMappings, assumed to
> > be constant ? Especially, is it ok (or isn't it?), if getUnknown()
> > returns different values over the lifetime of an ActionMapping
> > instance ?
> > Matthias                          mailto:[EMAIL PROTECTED]
> >
> An individual ActionMapping is *not* assumed to return the 
> same values every
> time.  The ActionMappings collection itself is the cache, so 
> the mapping
> elements are queried any time their value is needed.
> 
> The same thing goes for the ActionMappings object itself -- 
> the value returned
> by getUnknown() can change dynamically if you wish to vary 
> the choice of
> destination action.
> 
> Unfortunately, however, you do not have much context on which 
> to base that
> decision, since getUnknown() takes no arguments.  Would it be 
> useful to pass in
> the request currently being processed?
> 
> Craig

I think so. I've actually had the case where I've wanted one mapping to
return variable results...

Reply via email to