Search in sources :

Example 1 with StandaloneDiskHostedDatabase

use of edu.mit.simile.backstage.model.data.StandaloneDiskHostedDatabase in project backstage by zepheira.

the class BackstageModule method getStandaloneDatabase.

public Database getStandaloneDatabase() {
    if (s_standaloneDatabase == null) {
        ExtendedProperties properties = getProperties();
        String databaseString = properties.getString("backstage.hostedData.database");
        File database = (databaseString == null || databaseString.length() == 0) ? new File("database") : new File(databaseString);
        s_standaloneDatabase = new StandaloneDiskHostedDatabase(database);
    }
    return s_standaloneDatabase;
}
Also used : StandaloneDiskHostedDatabase(edu.mit.simile.backstage.model.data.StandaloneDiskHostedDatabase) File(java.io.File) ExtendedProperties(org.apache.commons.collections.ExtendedProperties)

Aggregations

StandaloneDiskHostedDatabase (edu.mit.simile.backstage.model.data.StandaloneDiskHostedDatabase)1 File (java.io.File)1 ExtendedProperties (org.apache.commons.collections.ExtendedProperties)1