Hi there,

  After a long period of reading, now I'm starting to code my
application using these frameworks: Wicket, Google Guice and
Warp-persistence. I facet a conceptual problem (IMHO) about how
initialize google guice. I read a lot of source codes on the internet
and most of them, if not all, initialize Google Guice and
Warp-persistence inside the WicketApplication class (extends
WebApplication). I think it isn't a good thing, because in the
conceptual point of view google guice doesn't have direct relation to
wicket. So, I started to find a good solution for this problem.
  My solution consists in use Google Guice servlet extension. I think
that sometimes a source code says more than a thousand words ehehe,
below are the pastbin links for all envolved files. What I want from
you is a feedback, suggestions, improvements, critics, etc...

Files:
- web.xml
    http://pastebin.com/f576189de

- GuiceServletContextListener
    http://pastebin.com/f6a42d811

- WebModule
    http://pastebin.com/f24a797b

- ServiceModule
    http://pastebin.com/f6e9db66f

- PersistenceServiceInitializer
    http://pastebin.com/f6e4425fd

Maybe, and probably, some parts of the pasted source code are based on
another projects, blogs posts, etc.

Thanks,
Eduardo S. Nunes

(this message was sent to wicket group list too)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-guice?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to