Sorry for not replying earlier. That sounds like a good idea. I don't
see anybody depending on the instance-side implementation.
Lukas
On 10 August 2010 23:41, Reza Razavi <razavi(a)acm.org> wrote:
Hi Lukas, all,
#isRestful is called by PRContext >> urlOn:, typically via the
PRMenuRenderer (so, upon every page refresh), which delegates to the current
Command, which, in the case of PRViewCommand, delegates in turn to its
'viewComponent'.
To avoid creating an instance of the #viewComponentClass just to check if
its #isRestful, would it make sense to:
1) Move to the class side the four occurrences of #isRestful implementation
in the PRViewComponent hierarchy, and then
2) Change the code in PRViewCommand to delegate to #viewComponentClass?
Regards,
Reza
_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki