Search in sources :

Example 1 with StandalonePersistanceFactoryService

use of org.gluu.persist.service.StandalonePersistanceFactoryService in project oxCore by GluuFederation.

the class ConfigurationFactory method create.

private void create() {
    this.persistanceFactoryService = new StandalonePersistanceFactoryService();
    this.persistenceConfiguration = persistanceFactoryService.loadPersistenceConfiguration(getDefaultConfigurationFileName());
    this.baseConfiguration = loadBaseConfiguration();
    this.confDir = confDir();
    this.saltFilePath = confDir + SALT_FILE_NAME;
    this.cryptoConfigurationSalt = loadCryptoConfigurationSalt();
    this.stringEncrypter = createStringEncrypter();
    this.persistenceEntryManager = createPersistenceEntryManager();
    if (!createFromDb()) {
        LOG.error("Failed to load configuration from DB. Please fix it!!!.");
        throw new ConfigurationException("Failed to load configuration from DB.");
    } else {
        this.loaded = true;
        LOG.info("Configuration loaded successfully.");
    }
    this.cacheConfiguration = loadCacheConfiguration();
}
Also used : ConfigurationException(org.gluu.util.exception.ConfigurationException) StandalonePersistanceFactoryService(org.gluu.persist.service.StandalonePersistanceFactoryService)

Aggregations

StandalonePersistanceFactoryService (org.gluu.persist.service.StandalonePersistanceFactoryService)1 ConfigurationException (org.gluu.util.exception.ConfigurationException)1