Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.2.6
-
None
-
Java 5, Mac OS X 10.4.
Description
It's trival to introduce a new Session class. Just override newSession in Application:
public Session newSession()
{ return new MySession(this); }But introducing a new RequestCycle is a pain. I have to override Session.getRequestCycleFactory or Application.getDefaultRequestCycleFactory, providing a new factory that returns the particular RequestCycle that I want.
Strangely, there is a Session.newRequestCycle, but it's final. (Why?)
Suggestion: Please make Session/RequestCycle work like Application/Session. Let me just override newRequestCycle in Session and instantiate my RequestCycle. Maybe Application should implement ISessionFactory, and Session should implement IRequestCycleFactory. (Why does WebApplication implement ISessionFactory but not Application?)