This commit is contained in:
James Agnew 2019-01-09 14:40:43 -05:00
parent 17ac097050
commit d091665ab6
2 changed files with 7 additions and 4 deletions

View File

@ -58,7 +58,13 @@ public class SubscriptionInterceptorLoader {
} }
if (myDaoConfig.isSubscriptionMatchingEnabled()) { if (myDaoConfig.isSubscriptionMatchingEnabled()) {
ourLog.info("Registering subscription matcher interceptor"); ourLog.info("Registering subscription matcher interceptor");
if (mySubscriptionMatcherInterceptor == null) {
mySubscriptionMatcherInterceptor = myAppicationContext.getBean(SubscriptionMatcherInterceptor.class);
}
myDaoConfig.registerInterceptor(mySubscriptionMatcherInterceptor); myDaoConfig.registerInterceptor(mySubscriptionMatcherInterceptor);
} }
} }
@ -72,9 +78,6 @@ public class SubscriptionInterceptorLoader {
if (mySubscriptionActivatingInterceptor == null) { if (mySubscriptionActivatingInterceptor == null) {
mySubscriptionActivatingInterceptor = myAppicationContext.getBean(SubscriptionActivatingInterceptor.class); mySubscriptionActivatingInterceptor = myAppicationContext.getBean(SubscriptionActivatingInterceptor.class);
} }
if (mySubscriptionMatcherInterceptor == null) {
mySubscriptionMatcherInterceptor = myAppicationContext.getBean(SubscriptionMatcherInterceptor.class);
}
} }
@VisibleForTesting @VisibleForTesting

View File

@ -17,7 +17,7 @@ public class UhnFhirTestApp {
public static void main(String[] args) throws Exception { public static void main(String[] args) throws Exception {
int myPort = 8888; int myPort = 8889;
String base = "http://localhost:" + myPort + "/baseDstu2"; String base = "http://localhost:" + myPort + "/baseDstu2";
// new File("target/testdb").mkdirs(); // new File("target/testdb").mkdirs();