KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > rentacar > persistance > dao > AddressDAO


1 package org.objectweb.rentacar.persistance.dao;
2
3 /**
4  *
5  * @author ofabre
6  *
7  */

8 public class AddressDAO extends GenericDAO {
9     
10     private static AddressDAO theInstance;
11     
12     private AddressDAO(){
13         
14     }
15     
16     public static synchronized AddressDAO getInstance() {
17         if (null == theInstance) {
18             theInstance = new AddressDAO();
19         }
20         return theInstance;
21     }
22
23 }
24
Popular Tags