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();
}
Aggregations