/** * Log a message object at the INFO level. * * @param msg * - the message object to be logged */ @Override public void info(String msg) { this.logger.info(null, getClass(), msg); }
/** * Logs a message with info log level. * * @param message log this message */ @Override public final void info(final Object msg) { String sMsg = msg == null ? "???" : msg.toString(); this.logger.info(null, getClass(), sMsg); }
/** * <p>Handle data changed event.</p> * @throws Exception - an exception **/ @Override public final synchronized void handleDataChanged() throws Exception { this.i18nAccountingList = null; this.i18nCurrencyList = null; this.logger.info(null, HndlAccVarsRequest.class, "I18N changes are handled."); if (this.additionalI18nReqHndl != null) { this.additionalI18nReqHndl.handleDataChanged(); } }
/** * <p>Handle data changed event.</p> * @throws Exception - an exception **/ @Override public final synchronized void handleDataChanged() throws Exception { this.langPreferences = null; this.languages = null; this.decimalSeparators = null; this.decimalGroupSeparators = null; this.logger.info(null, HndlI18nRequest.class, "I18N changes are handled."); if (this.additionalI18nReqHndl != null) { this.additionalI18nReqHndl.handleDataChanged(); } }
/** * <p>Get SrvPage in lazy mode.</p> * @return SrvPage - SrvPage * @throws Exception - an exception */ public final synchronized SrvPage lazyGetSrvPage() throws Exception { if (this.srvPage == null) { this.srvPage = new SrvPage(); lazyGetLogger().info(AFactoryAppBeans.class, "SrvPage has been created."); } return this.srvPage; }
/** * <p>Get SrvI18n in lazy mode.</p> * @return SrvI18n - SrvI18n * @throws Exception - an exception */ public final synchronized SrvI18n lazyGetSrvI18n() throws Exception { if (this.srvI18n == null) { this.srvI18n = new SrvI18n(); lazyGetLogger().info(AFactoryAppBeans.class, "SrvI18n has been created."); } return this.srvI18n; }
/** * <p>Get UtilXml in lazy mode.</p> * @return UtilXml - UtilXml * @throws Exception - an exception */ public final synchronized UtilXml lazyGetUtilXml( ) throws Exception { if (this.utilXml == null) { this.utilXml = new UtilXml(); lazyGetLogger().info(AFactoryAppBeans.class, "UtilXml has been created."); } return this.utilXml; }
/** * <p>Get HlpInsertUpdate in lazy mode.</p> * @return HlpInsertUpdate - HlpInsertUpdate * @throws Exception - an exception */ public final synchronized HlpInsertUpdate lazyGetHlpInsertUpdate( ) throws Exception { if (this.hlpInsertUpdate == null) { this.hlpInsertUpdate = new HlpInsertUpdate(); lazyGetLogger().info(AFactoryAppBeans.class, "HlpInsertUpdate has been created."); } return this.hlpInsertUpdate; }
/** * <p>Get UtlReflection in lazy mode.</p> * @return UtlReflection - UtlReflection * @throws Exception - an exception */ public final synchronized UtlReflection lazyGetUtlReflection( ) throws Exception { if (this.utlReflection == null) { this.utlReflection = new UtlReflection(); lazyGetLogger().info(AFactoryAppBeans.class, "UtlReflection has been created."); } return this.utlReflection; }
/** * <p>Get UtlProperties in lazy mode.</p> * @return UtlProperties - UtlProperties * @throws Exception - an exception */ public final synchronized UtlProperties lazyGetUtlProperties( ) throws Exception { if (this.utlProperties == null) { this.utlProperties = new UtlProperties(); lazyGetLogger().info(AFactoryAppBeans.class, "UtlProperties has been created."); } return this.utlProperties; }
/** * <p>Get SrvRecordRetriever in lazy mode.</p> * @return SrvRecordRetriever - SrvRecordRetriever * @throws Exception - an exception */ @Override public final synchronized SrvRecordRetriever lazyGetSrvRecordRetriever() throws Exception { if (this.srvRecordRetriever == null) { this.srvRecordRetriever = new SrvRecordRetriever(); lazyGetLogger().info(AFactoryAppBeans.class, "SrvRecordRetriever has been created."); } return this.srvRecordRetriever; }
/** * <p>Get UtlJsp in lazy mode.</p> * @return UtlJsp - UtlJsp * @throws Exception - an exception */ public final synchronized UtlJsp lazyGetUtlJsp( ) throws Exception { if (this.utlJsp == null) { this.utlJsp = new UtlJsp(); lazyGetLogger().info(AFactoryAppBeans.class, "UtlJsp has been created."); } return this.utlJsp; }
/** * <p>Get SrvSqlEscape in lazy mode.</p> * @return SrvSqlEscape - SrvSqlEscape * @throws Exception - an exception */ public final SrvSqlEscape lazyGetSrvSqlEscape() throws Exception { String beanName = getSrvSqlEscapeName(); SrvSqlEscape srvSqlEscape = (SrvSqlEscape) this.beansMap.get(beanName); if (srvSqlEscape == null) { srvSqlEscape = new SrvSqlEscape(); this.beansMap.put(beanName, srvSqlEscape); lazyGetLogger().info(null, AFactoryAppBeans.class, beanName + " has been created."); } return srvSqlEscape; }
/** * <p>Get UtilXml in lazy mode.</p> * @return UtilXml - UtilXml * @throws Exception - an exception */ public final UtilXml lazyGetUtilXml() throws Exception { String beanName = getUtilXmlName(); UtilXml utilXml = (UtilXml) this.beansMap.get(beanName); if (utilXml == null) { utilXml = new UtilXml(); this.beansMap.put(beanName, utilXml); lazyGetLogger().info(null, AFactoryAppBeans.class, beanName + " has been created."); } return utilXml; }
/** * <p>Get SrvNumberToString in lazy mode.</p> * @return SrvNumberToString - SrvNumberToString * @throws Exception - an exception */ public final SrvNumberToString lazyGetSrvNumberToString() throws Exception { String beanName = getSrvNumberToStringName(); SrvNumberToString srvDate = (SrvNumberToString) this.beansMap.get(beanName); if (srvDate == null) { srvDate = new SrvNumberToString(); this.beansMap.put(beanName, srvDate); lazyGetLogger().info(null, AFactoryAppBeans.class, beanName + " has been created."); } return srvDate; }
/** * <p>Get DataSource in lazy mode.</p> * @return DataSource - DataSource * @throws Exception - an exception */ @Override public final synchronized DataSource lazyGetDataSource() throws Exception { if (this.dataSource == null) { this.dataSource = new HikariDataSource(); this.dataSource.setJdbcUrl(getDatabaseName()); this.dataSource.setDriverClassName("org.sqlite.JDBC"); lazyGetLogger().info(FactoryAppBeansSqlite.class, "HikariDataSource has been created."); } return this.dataSource; }
/** * <p>Get MngDatabaseSqlite in lazy mode.</p> * @return MngDatabaseSqlite - MngDatabaseSqlite * @throws Exception - an exception */ public final synchronized MngDatabaseSqlite lazyGetMngDatabaseSqlite() throws Exception { if (this.mngDatabaseSqlite == null) { this.mngDatabaseSqlite = new MngDatabaseSqlite(); this.mngDatabaseSqlite.setFactoryAppBeansSqlite(this); lazyGetLogger().info(FactoryAppBeansSqlite.class, "MngDatabaseSqlite has been created."); } return this.mngDatabaseSqlite; }
/** * <p>Get SrvDatabase in lazy mode.</p> * @return SrvDatabase - SrvDatabase * @throws Exception - an exception */ @Override public final synchronized ILogger lazyGetLogger() throws Exception { if (this.logger == null) { this.logger = new LoggerStandard(); this.logger.setIsShowDebugMessages(getIsShowDebugMessages()); lazyGetLogger().info(AFactoryAppBeans.class, "LoggerStandard has been created."); } return this.logger; }
/** * <p>Get MngSoftware in lazy mode.</p> * @return MngSoftware - MngSoftware * @throws Exception - an exception */ public final synchronized MngSoftware lazyGetMngSoftware( ) throws Exception { if (this.mngSoftware == null) { this.mngSoftware = new MngSoftware(); this.mngSoftware.setLogger(lazyGetLogger()); lazyGetLogger().info(AFactoryAppBeans.class, "MngSoftware has been created."); } return this.mngSoftware; }
/** * <p>Get SrvWebMvc in lazy mode.</p> * @return SrvWebMvc - SrvWebMvc * @throws Exception - an exception */ public final synchronized SrvWebMvc<RS> lazyGetSrvWebMvc() throws Exception { if (this.srvWebMvc == null) { this.srvWebMvc = new SrvWebMvc<RS>(); this.srvWebMvc.setLogger(lazyGetLogger()); this.srvWebMvc.setSrvOrm(lazyGetSrvOrm()); this.srvWebMvc.setUtlReflection(lazyGetUtlReflection()); lazyGetLogger().info(AFactoryAppBeans.class, "ISrvWebMvc has been created."); } return this.srvWebMvc; }