Alfredo Aleandri wrote:

> I have a doubt about application-scoped objects.
> What's the pro and cons of setting an object instance into my
> WebApplication class or define that class as singleton (using a static
> method to access it) ?

Pro: Singletons are easy to use
Contra: They make Unit tests and re-usability difficult.

I personally use dependency-injection with wicket-guice.

Jan



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to