use of org.opennms.netmgt.config.ScriptdConfigFactory in project opennms by OpenNMS.
the class Scriptd method onInit.
/**
* Initialize the <em>Scriptd</em> service.
*/
@Override
protected void onInit() {
// Load the configuration information
//
ScriptdConfigFactory aFactory = null;
try {
ScriptdConfigFactory.reload();
aFactory = ScriptdConfigFactory.getInstance();
} catch (IOException ex) {
LOG.error("Failed to load scriptd configuration", ex);
throw new UndeclaredThrowableException(ex);
}
// get the node DAO
BeanFactoryReference bf = BeanUtils.getBeanFactory("daoContext");
NodeDao nodeDao = BeanUtils.getBean(bf, "nodeDao", NodeDao.class);
m_executor = new Executor(aFactory, nodeDao);
}
Aggregations