public void setInit(log_init _init) { this.init = _init; logStub = stubFactory(init.get_LogStub()); try { readError = true; } catch (Exception e) { readError = true; // bsController.writeLog("Load_log ERROR:"+e.toString(),iStub.log_ERROR); util_format.writeToConsole(_init, "Load_log ERROR: " + e.toString()); return; } }
public LogGenerator_CdiOnlySession(log_init _init) { super(); this.init = _init; logStub = stubFactory(init.get_LogStub()); try { if (init == null) throw new Exception("Log INIT is NULL"); if (init.get_LogPath() == null) throw new Exception("Log INIT->LogPath is NULL"); } catch (Exception e) { readError = true; // bsController.writeLog("Load_log ERROR:"+e.toString(),iStub.log_ERROR); util_format.writeToConsole(_init, "Load_log ERROR: " + e.toString()); return; } }
private iStub stubFactory(log_init _init) { String className = _init.get_LogStub(); if (className == null || className.equals("")) return null; if (logStub == null) { try { logStub = (iStub) util_provider.getInstanceFromProvider( new String[] { bsController.getAppInit().get_context_provider(), bsController.getAppInit().get_cdi_provider(), bsController.getAppInit().get_ejb_provider() }, className); } catch (Exception e) { logStub = null; } } return logStub; }
public iStub get_log_Stub() { return stubFactory(init.get_LogStub()); }