refs #2357: Remove reflections dependency from document-store-lib

https://support.d4science.org/issues/2357

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-publishing/document-store-lib@124713 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2016-03-01 13:41:37 +00:00
parent 77d911861b
commit 6a52fb8823
2 changed files with 5 additions and 2 deletions

View File

@ -10,6 +10,7 @@ import java.util.Map;
import java.util.ServiceLoader;
import java.util.concurrent.TimeUnit;
import org.gcube.documentstore.records.RecordUtility;
import org.gcube.documentstore.records.aggregation.AggregationScheduler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@ -47,8 +48,8 @@ public abstract class PersistenceBackendFactory {
fallbackLastCheck = new HashMap<String, Long>();
}
public static void setDefaultAggregationPackage(Package packageObj){
public static void addRecordPackage(Package packageObject) {
RecordUtility.addRecordPackage(packageObject);
}
private static File file(File file) throws IllegalArgumentException {

View File

@ -43,6 +43,8 @@ public class RecordUtility {
return;
}
recordPackages.add(packageObject);
try {
List<Class<?>> classes = ReflectionUtility.getClassesForPackage(packageObject);
for(Class<?> clz : classes){