On 19/05/2010 16:36, James Carman wrote:
What itch are we trying to scratch, here, anyway? When do folks need
access to the Application object outside of a request thread? What is
the usecase?
I have a piece of code that runs in a timer, and renders a page to a
string to be sent via email. So I do need the app object to make a
session. I do catch it from a static field.
The code (that is probably inspired in something in the wiki) is not
very clear, needing mock objects. I do think Wicket could have a way to
simplify it, but not introducing leaks that's know to happen with Java
system classes way of work, as I shown.
Adriano