use of cl.utfsm.acs.acg.dao.ACSSourceDAOImpl in project ACS by ACS-Community.
the class DAOManager method getSourceDAO.
public SourceDAO getSourceDAO() {
if (_conf == null) {
throw new IllegalStateException("DAOManager not connected to DAL");
}
if (_sourceDAOImpl == null) {
if (_alarmDAOImpl == null)
_alarmDAOImpl = getAlarmDAO();
_sourceDAOImpl = new ACSSourceDAOImpl(_contServ.getLogger(), ((ACSAlarmDAOImpl) _alarmDAOImpl).getSources());
((ACSSourceDAOImpl) _sourceDAOImpl).setConfAccessor(_conf);
}
return _sourceDAOImpl;
}
Aggregations