Search in sources :

Example 1 with ACSSourceDAOImpl

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;
}
Also used : ACSSourceDAOImpl(cl.utfsm.acs.acg.dao.ACSSourceDAOImpl) ACSAlarmDAOImpl(cl.utfsm.acs.acg.dao.ACSAlarmDAOImpl)

Aggregations

ACSAlarmDAOImpl (cl.utfsm.acs.acg.dao.ACSAlarmDAOImpl)1 ACSSourceDAOImpl (cl.utfsm.acs.acg.dao.ACSSourceDAOImpl)1