|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
E14: Allow overloaded method accessDWR currently isn't very smart about the way it handles overloaded methods, and basically we say "don't". I think we could do better. Issues: - DWR generates one stub per server method signature, it ought to generate one per server method name. (This doesn't break things, just makes this less efficient) - DWR generates stubs that have arguments rather than just passing on the arguments array to engine.js - The server-side logic to select the best method does not take into account the incoming type information (one of the ways that dwrp is better than json - but we mostly ignore it!) Joe. |
|
|
RE: E14: Allow overloaded method accessBeing able to resolve the correct overloaded method would
then rely on the client code using mapped classes for the parameters,
right?
Best regards
Mike
|
|
|
Re: E14: Allow overloaded method accessSo the algorithm goes like this: - If there is only one method that matches both name and number of types, use that - If we have a number of methods that have both the right name and number of types then: - For each method, attempt to convert the params for that method, if any of the parameters fails a test for converterManager.isConvertable the remove the method from the list of options - If we have one remaining, use that. If we have more than one, warn and use the first, otherwise complain. Maybe this is good enough? Joe. On Sat, Jul 12, 2008 at 11:52 PM, Mike Wilson <mikewse@...> wrote:
|
|
|
RE: E14: Allow overloaded method accessAs I wrote in E13 I think separate handling of class-mapped
and non class-mapped parameters may help in doing the right thing. Here it is
again:
I think this is doable and I agree that
you should be the champion for this.
Best regards
Mike
|
| Free Forum Powered by Nabble | Forum Help |