- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {FileOutputStream f =
File file;new FileOutputStream(file)
String name;new FileOutputStream(name)
File file;new FileOutputStream(file, true)
- Smart code suggestions by Codota
}
/** * <p>Get SrvDatabase in lazy mode.</p> * @return SrvDatabase - SrvDatabase * @throws Exception - an exception */ @Override public final synchronized SrvDatabase lazyGetSrvDatabase() throws Exception { String beanName = getSrvDatabaseName(); SrvDatabase srvDatabase = (SrvDatabase) getBeansMap().get(beanName); if (srvDatabase == null) { srvDatabase = new SrvDatabase(); srvDatabase.setLogger(lazyGetLogger()); srvDatabase.setHlpInsertUpdate(lazyGetHlpInsertUpdate()); srvDatabase.setDataSource(lazyGetDataSource()); getBeansMap().put(beanName, srvDatabase); lazyGetLogger().info(null, AFactoryAppBeansJdbc.class, beanName + " has been created."); } return srvDatabase; } }
/** * <p>Get SrvDatabase in lazy mode.</p> * @return SrvDatabase - SrvDatabase * @throws Exception - an exception */ @Override public final synchronized SrvDatabase lazyGetSrvDatabase() throws Exception { if (this.srvDatabase == null) { this.srvDatabase = new SrvDatabase(); this.srvDatabase.setLogger(lazyGetLogger()); this.srvDatabase.setHlpInsertUpdate(lazyGetHlpInsertUpdate()); this.srvDatabase.setDataSource(lazyGetDataSource()); this.srvDatabase.setSrvRecordRetriever(lazyGetSrvRecordRetriever()); lazyGetLogger().info(AFactoryAppBeans.class, "SrvDatabase has been created."); } return this.srvDatabase; }