Upgrade to 3.7.0

This commit is contained in:
James Agnew
2019-02-06 09:42:45 -05:00
parent 76f9a2f0f3
commit ce32efa582
3 changed files with 21 additions and 19 deletions

View File

@@ -11,7 +11,6 @@ import ca.uhn.fhir.jpa.provider.dstu3.JpaConformanceProviderDstu3;
import ca.uhn.fhir.jpa.provider.dstu3.JpaSystemProviderDstu3;
import ca.uhn.fhir.jpa.provider.dstu3.TerminologyUploaderProviderDstu3;
import ca.uhn.fhir.jpa.search.DatabaseBackedPagingProvider;
import ca.uhn.fhir.jpa.subscription.resthook.SubscriptionRestHookInterceptor;
import ca.uhn.fhir.model.dstu2.composite.MetaDt;
import ca.uhn.fhir.narrative.DefaultThymeleafNarrativeGenerator;
import ca.uhn.fhir.rest.api.EncodingEnum;
@@ -22,6 +21,7 @@ import ca.uhn.fhir.rest.server.RestfulServer;
import ca.uhn.fhir.rest.server.interceptor.ResponseHighlighterInterceptor;
import org.hl7.fhir.dstu3.model.Bundle;
import org.hl7.fhir.dstu3.model.Meta;
import org.hl7.fhir.instance.model.Subscription;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.context.ContextLoaderListener;
@@ -162,26 +162,12 @@ public class JpaServerDemo extends RestfulServer {
}
}
/*
* If you want to support subscriptions, you will want to register interceptors for
* any type of subscriptions you want to support.
*/
boolean subscriptionsEnabled = false;
if (subscriptionsEnabled) { // <-- DISABLED RIGHT NOW
SubscriptionRestHookInterceptor restHookInterceptor = myAppCtx.getBean(SubscriptionRestHookInterceptor.class);
registerInterceptor(restHookInterceptor);
// You might alo want to enable other subscription interceptors too
// eg...
// myAppCtx.getBean(SubscriptionWebsocketInterceptor.class);
// myAppCtx.getBean(SubscriptionEmailInterceptor.class);
// If you want to enable the $trigger-subscription operation to allow
// manual triggering of a subscription delivery, enable this provider
// If you want to enable the $trigger-subscription operation to allow
// manual triggering of a subscription delivery, enable this provider
if (false) { // <-- DISABLED RIGHT NOW
SubscriptionTriggeringProvider retriggeringProvider = myAppCtx.getBean(SubscriptionTriggeringProvider.class);
registerProvider(retriggeringProvider);
}
}
}