Skip to content

Commit cc6b71d

Browse files
authored
Merge pull request #764 from XcrigX/custom-registrations-debugout
added debug out to assist troubleshooting custom interceptor/provider…
2 parents 103fd01 + b58264f commit cc6b71d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/ca/uhn/fhir/jpa/starter/common/StarterJpaConfig.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,7 @@ private void registerCustomInterceptors(
493493
Object interceptor = null;
494494
try {
495495
interceptor = theAppContext.getBean(clazz);
496+
ourLog.info("registering custom interceptor as bean: {}", className);
496497
} catch (NoSuchBeanDefinitionException ex) {
497498
// no op - if it's not a bean we'll try to create it
498499
}
@@ -501,6 +502,7 @@ private void registerCustomInterceptors(
501502
if (interceptor == null) {
502503
try {
503504
interceptor = clazz.getConstructor().newInstance();
505+
ourLog.info("registering custom interceptor as pojo: {}", className);
504506
} catch (Exception e) {
505507
throw new ConfigurationException("Unable to instantiate interceptor class : " + className, e);
506508
}
@@ -532,6 +534,7 @@ private void registerCustomProviders(
532534
Object provider = null;
533535
try {
534536
provider = theAppContext.getBean(clazz);
537+
ourLog.info("registering custom provider as bean: {}", className);
535538
} catch (NoSuchBeanDefinitionException ex) {
536539
// no op - if it's not a bean we'll try to create it
537540
}
@@ -540,6 +543,7 @@ private void registerCustomProviders(
540543
if (provider == null) {
541544
try {
542545
provider = clazz.getConstructor().newInstance();
546+
ourLog.info("registering custom provider as pojo: {}", className);
543547
} catch (Exception e) {
544548
throw new ConfigurationException("Unable to instantiate provider class : " + className, e);
545549
}

0 commit comments

Comments
 (0)