You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Willis Blackburn (JIRA)" <ji...@apache.org> on 2010/12/29 16:09:46 UTC
[jira] Updated: (WICKET-3291) Refactoring of RequestCycle has
reintroduced WICKET-689
[ https://issues.apache.org/jira/browse/WICKET-3291?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willis Blackburn updated WICKET-3291:
-------------------------------------
Description:
Three years ago I requested a newRequestCycle method in Application to make it as easy to integrate custom RequestCycle implementations as it is to integrate custom Session implementations. The Wicket team added the method and also removed the IRequestCycleFactory interface.
But in the 1.5-M3 code base I see the exact same situation: IRequestCycleFactory has returned, only now it's called IRequestCycleProvider, and again there is no non-final Application method that I can override to instantiate my own RequestCycle.
I think as a general principle, we should look skeptically at interfaces have one method and that only exist as a member of one class and are only called from that class; it seems like a complicated way of overriding a method. Possibly there's a Wicket application out there somewhere that would benefit from the interface. But for most of us, who are creating our own Application subclasses anyway, it's much easier to just override newRequestCycle, in the same way that we override newSession.
See also WICKET-689.
was:
Three years ago I requested a newRequestCycle method in Application to make it as easy to integrate custom RequestCycle implementations as it is to integrate custom Session implementations. The Wicket team added the method and also removed the IRequestCycleFactory interface.
But in the 1.5-M3 code base I see the exact same situation: IRequestCycleFactory has returned, only now it's called IRequestCycleProvider, and again there is no non-final Application method that I can override to instantiate my own RequestCycle.
I think as a general principle, we should look skeptically at interfaces have one method and that only exist as a member of one class and are only called from that class; it seems like a complicated way of overriding a method. Possibly there's a Wicket application out there somewhere that would benefit from the interface. But for most of us, who are creating our own Application subclasses anyway, it's much easier to just override newRequestCycle, in the same way that we override newSession.
See also WIKET-689.
> Refactoring of RequestCycle has reintroduced WICKET-689
> -------------------------------------------------------
>
> Key: WICKET-3291
> URL: https://issues.apache.org/jira/browse/WICKET-3291
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.5-M3
> Reporter: Willis Blackburn
>
> Three years ago I requested a newRequestCycle method in Application to make it as easy to integrate custom RequestCycle implementations as it is to integrate custom Session implementations. The Wicket team added the method and also removed the IRequestCycleFactory interface.
> But in the 1.5-M3 code base I see the exact same situation: IRequestCycleFactory has returned, only now it's called IRequestCycleProvider, and again there is no non-final Application method that I can override to instantiate my own RequestCycle.
> I think as a general principle, we should look skeptically at interfaces have one method and that only exist as a member of one class and are only called from that class; it seems like a complicated way of overriding a method. Possibly there's a Wicket application out there somewhere that would benefit from the interface. But for most of us, who are creating our own Application subclasses anyway, it's much easier to just override newRequestCycle, in the same way that we override newSession.
> See also WICKET-689.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.