Divide the MSB source codes into two repos
[msb/apigateway.git] / apiroute / apiroute-service / src / main / java / org / onap / msb / apiroute / wrapper / dao / DAOFactory.java
1 package org.onap.msb.apiroute.wrapper.dao;
2
3 import org.onap.msb.apiroute.wrapper.dao.route.IRouteDAO;
4 import org.onap.msb.apiroute.wrapper.dao.route.RouteDAOImpl;
5 import org.onap.msb.apiroute.wrapper.dao.service.IServiceDAO;
6 import org.onap.msb.apiroute.wrapper.dao.service.ServiceDAOImpl;
7
8 public class DAOFactory {
9     private static final IRouteDAO routeDAO = new RouteDAOImpl();
10     private static final IServiceDAO serviceDAO = new ServiceDAOImpl();
11
12     public static IRouteDAO getRouteDAO(){
13         return routeDAO;
14     }
15     public static IServiceDAO getServiceDAO(){
16         return serviceDAO;
17     }
18 }