public abstract class

DatabaseModule

extends AbstractModule
java.lang.Object
   ↳ com.google.inject.AbstractModule
     ↳ uk.ac.imperial.presage2.core.db.DatabaseModule

Summary

Public Constructors
DatabaseModule()
Public Methods
static DatabaseModule load()
Load a database module from settings in the db.properties file.
[Expand]
Inherited Methods
From class com.google.inject.AbstractModule
From class java.lang.Object
From interface com.google.inject.Module

Public Constructors

public DatabaseModule ()

Public Methods

public static DatabaseModule load ()

Load a database module from settings in the db.properties file. The file should specify the module property with the class name of the module to load. Other properties will be passed the module's constructor.

Returns
  • DatabaseModule defined in db.properties. null if the file does not exist or there is an exception raise in the process.