Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into rel_7_8_tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
dotasek committed Dec 13, 2024
2 parents 1f5f655 + cc6b71d commit 92600c4
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,7 @@ private void registerCustomInterceptors(
Object interceptor = null;
try {
interceptor = theAppContext.getBean(clazz);
ourLog.info("registering custom interceptor as bean: {}", className);
} catch (NoSuchBeanDefinitionException ex) {
// no op - if it's not a bean we'll try to create it
}
Expand All @@ -495,6 +496,7 @@ private void registerCustomInterceptors(
if (interceptor == null) {
try {
interceptor = clazz.getConstructor().newInstance();
ourLog.info("registering custom interceptor as pojo: {}", className);
} catch (Exception e) {
throw new ConfigurationException("Unable to instantiate interceptor class : " + className, e);
}
Expand Down Expand Up @@ -526,6 +528,7 @@ private void registerCustomProviders(
Object provider = null;
try {
provider = theAppContext.getBean(clazz);
ourLog.info("registering custom provider as bean: {}", className);
} catch (NoSuchBeanDefinitionException ex) {
// no op - if it's not a bean we'll try to create it
}
Expand All @@ -534,6 +537,7 @@ private void registerCustomProviders(
if (provider == null) {
try {
provider = clazz.getConstructor().newInstance();
ourLog.info("registering custom provider as pojo: {}", className);
} catch (Exception e) {
throw new ConfigurationException("Unable to instantiate provider class : " + className, e);
}
Expand Down

0 comments on commit 92600c4

Please sign in to comment.