|
I have looked at this now in the constructor of Session we do this: protected Session(final IApplication application) { this.application = application; setPageFactory(application.getSettings().getDefaultPageFactory()); setClassResolver(application.getSettings().getDefaultClassResolver()); this.pages = MostRecentlyUsedMap.newInstance(application.getSettings() .getMaxSessionPages()); } So we are getting the defaults and are storing that in the Session object. Now i can make the page an class resolvers transient. But what should i store then? The classname? Then we should require that they have a default constructor so that i can do newInstance(); Also i see this: private transient IApplication application; and the getter: public final IApplication getApplication() { return application; } But that could be a problem Because if it is serialized and deserialized how do we get the application back? then that session wouldn't have a application anymore! any thoughts? johan Juergen Donnerstag wrote: I remember Jon's explanation why it makes sense to have IPageFactory access through the Session. But does it really need to be synchronized in a cluster? I don't think so. Without having taken a look at the implementation, why not make the pageFactory transient?Juergen On Wed, 19 Jan 2005 19:52:03 +0100, Johan Compagner <[EMAIL PROTECTED]> wrote: |
- Re: [Wicket-develop] serializeable.. Johan Compagner
- Re: [Wicket-develop] serializeable.. Jonathan Locke
- Re: [Wicket-develop] serializeable.. Jonathan Locke
- Re: [Wicket-develop] serializeable.. Jonathan Locke
