> -----Oorspronkelijk bericht-----
> Van: Eelco Hillenius [mailto:[EMAIL PROTECTED]

> I'm not sure whether the factory
> method would be better in application, as I believe handling a runtime
> exception is something that logically belongs in a request cycle, not
> application. The only disadvantage is that it's maybe harder to find
> for people.

I think that it's fine to have the method on the Application class.
You need to extend it anyway, so overriding onRuntimeException is very
easy to do. And I do think it does belong there, because it knows how
to create the homepage, I think it's logical that it also knows how to
create an error page.

>
> What this does touch is that we have a request cycle factory to start
> with, rather than just a simple factory method like we have with e.g.
> newRequestCycleProcessor and newSessionStore. Imo, it should be enough
> to have just that, and those separate factories are just bloat. Want
> to start a new thread about this?
>

Do you mean you want to remove all those factory interfaces for simple
factory methods on Application?

Bart.

Reply via email to