Search in sources :

Example 1 with ConfigRepository

use of cz.o2.proxima.repository.ConfigRepository in project proxima-platform by O2-Czech-Republic.

the class DirectDataOperator method getTransactionManager.

private TransactionResourceManager getTransactionManager() {
    if (transactionManager == null) {
        synchronized (this) {
            if (transactionManager == null) {
                Config config = ((ConfigRepository) repo).getConfig();
                Map<String, Object> cfg = config.hasPath(ConfigConstants.TRANSACTIONS) ? config.getObject(ConfigConstants.TRANSACTIONS).unwrapped() : Collections.emptyMap();
                transactionManager = new TransactionResourceManager(this, cfg);
            }
        }
    }
    return transactionManager;
}
Also used : Config(com.typesafe.config.Config) ConfigRepository(cz.o2.proxima.repository.ConfigRepository) TransactionResourceManager(cz.o2.proxima.direct.transaction.TransactionResourceManager)

Aggregations

Config (com.typesafe.config.Config)1 TransactionResourceManager (cz.o2.proxima.direct.transaction.TransactionResourceManager)1 ConfigRepository (cz.o2.proxima.repository.ConfigRepository)1