From 66cafac3994d7b6854b1c7886cace9ed91b40d0e Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Tue, 1 Mar 2016 13:45:04 +0000 Subject: [PATCH] refs #2358: Remove reflections dependency from accounting-lib https://support.d4science.org/issues/2358 git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@124715 82a268e6-3cf1-43bd-a215-b396298e98cf --- pom.xml | 7 +------ .../persistence/AccountingPersistenceFactory.java | 6 +++++- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/pom.xml b/pom.xml index 1f3e3be..da34bbb 100644 --- a/pom.xml +++ b/pom.xml @@ -10,7 +10,7 @@ org.gcube.accounting accounting-lib - 2.1.0-SNAPSHOT + 2.2.0-SNAPSHOT Accounting Library Accounting Library jar @@ -63,11 +63,6 @@ 1.7.5 provided - - org.reflections - reflections - 0.9.10 - diff --git a/src/main/java/org/gcube/accounting/persistence/AccountingPersistenceFactory.java b/src/main/java/org/gcube/accounting/persistence/AccountingPersistenceFactory.java index 190352c..6798def 100644 --- a/src/main/java/org/gcube/accounting/persistence/AccountingPersistenceFactory.java +++ b/src/main/java/org/gcube/accounting/persistence/AccountingPersistenceFactory.java @@ -7,6 +7,8 @@ import java.util.HashMap; import java.util.Map; import java.util.concurrent.TimeUnit; +import org.gcube.accounting.datamodel.aggregation.AggregatedServiceUsageRecord; +import org.gcube.accounting.datamodel.usagerecords.ServiceUsageRecord; import org.gcube.common.scope.api.ScopeProvider; import org.gcube.documentstore.persistence.PersistenceBackendFactory; @@ -21,7 +23,9 @@ public class AccountingPersistenceFactory { protected final static Map persistences; static { - persistences = new HashMap(); + persistences = new HashMap(); + PersistenceBackendFactory.addRecordPackage(ServiceUsageRecord.class.getPackage()); + PersistenceBackendFactory.addRecordPackage(AggregatedServiceUsageRecord.class.getPackage()); } public static void setFallbackLocation(String path){