«« Next » « Previous
«« Next » « Previous

Link Details

Link 71180 thumbnail

By bloid
via blog.jdevelop.eu
Submitted: Mar 16 / 15:41

This application uses Guice’s Dependency Injection to create the HibernateConnection-instance and the OrdersDAO-instance. You can see that HibernateUtil don’t need STATICs anymore. Access to HibernateUtil is wrapped through a HibernateConnection which is created in a ConnectionProvider as a Singleton. Providers are acting as Factories in creating and returning Objects.
  • 8
  • 0
  • 702
  • 247

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (8)



Voters Against This Link (0)