Added fallback to discovered instance

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@120309 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2015-11-18 16:54:08 +00:00
parent 459d95c8d5
commit 5c0cfe71e9
1 changed files with 1 additions and 0 deletions

View File

@ -103,6 +103,7 @@ public abstract class AccountingPersistenceBackendFactory {
*/
logger.debug("{} will be used.", foundPersistenceClassName);
foundPersistence.setAggregationScheduler(AggregationScheduler.newInstance());
foundPersistence.setFallback(createFallback(scope));
return foundPersistence;
} catch (Exception e) {
logger.error(String.format("%s not initialized correctly. It will not be used. Trying the next one if any.", foundPersistence.getClass().getSimpleName()), e);