Prepare for 4.1.0 release
This commit is contained in:
@@ -61,6 +61,7 @@ public class HapiProperties {
|
||||
private static final String VALIDATE_RESPONSES_ENABLED = "validation.responses.enabled";
|
||||
private static final String FILTER_SEARCH_ENABLED = "filter_search.enabled";
|
||||
private static final String GRAPHQL_ENABLED = "graphql.enabled";
|
||||
private static final String BULK_EXPORT_ENABLED = "bulk.export.enabled";
|
||||
private static Properties ourProperties;
|
||||
|
||||
public static boolean isElasticSearchEnabled() {
|
||||
@@ -419,5 +420,8 @@ public class HapiProperties {
|
||||
return (T) Enum.valueOf(theEnumType, value);
|
||||
}
|
||||
|
||||
public static boolean getBulkExportEnabled() {
|
||||
return HapiProperties.getBooleanProperty(BULK_EXPORT_ENABLED, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -292,6 +292,11 @@ public class JpaRestfulServer extends RestfulServer {
|
||||
}
|
||||
}
|
||||
|
||||
// Bulk Export
|
||||
if (HapiProperties.getBulkExportEnabled()) {
|
||||
registerProvider(appCtx.getBean(BulkDataExportProvider.class));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user