public synchronized DatabaseContextFactory dbFactory ( String databaseUri ) { DatabaseContextFactory factory = new DatabaseContextFactory ( ) ; if ( ! factory . init ( databaseUri ) ) { log . error ( "Cannot initialize database connection pool, it won't be available to the program !" ) ; return null ; } return factory ; }
handles the database connection creation