added reindexProvider to Config (#326)

This commit is contained in:
Patrick Werner
2022-03-07 13:20:06 +01:00
committed by GitHub
parent 7db15103fe
commit 40d7b9ce27

View File

@@ -42,6 +42,7 @@ import ca.uhn.fhir.rest.server.interceptor.RequestValidatingInterceptor;
import ca.uhn.fhir.rest.server.interceptor.ResponseHighlighterInterceptor;
import ca.uhn.fhir.rest.server.interceptor.ResponseValidatingInterceptor;
import ca.uhn.fhir.rest.server.interceptor.partition.RequestTenantPartitionInterceptor;
import ca.uhn.fhir.rest.server.provider.ReindexProvider;
import ca.uhn.fhir.rest.server.provider.ResourceProviderFactory;
import ca.uhn.fhir.rest.server.tenant.UrlBaseTenantIdentificationStrategy;
import ca.uhn.fhir.rest.server.util.ISearchParamRegistry;
@@ -95,6 +96,8 @@ public class BaseJpaRestfulServer extends RestfulServer {
@Autowired
ValueSetOperationProvider valueSetOperationProvider;
@Autowired
ReindexProvider reindexProvider;
@Autowired
BinaryStorageInterceptor binaryStorageInterceptor;
@Autowired
IPackageInstallerSvc packageInstallerSvc;
@@ -373,6 +376,9 @@ public class BaseJpaRestfulServer extends RestfulServer {
// valueSet Operations i.e $expand
registerProvider(valueSetOperationProvider);
//reindex Provider $reindex
registerProvider(reindexProvider);
// Partitioning
if (appProperties.getPartitioning() != null) {
registerInterceptor(new RequestTenantPartitionInterceptor());