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