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.
SaveShareSend
Tags: frameworks, java
Add your comment