added debug out to assist troubleshooting custom interceptor/provider registration issues
This commit is contained in:
@@ -493,6 +493,7 @@ public class StarterJpaConfig {
|
|||||||
Object interceptor = null;
|
Object interceptor = null;
|
||||||
try {
|
try {
|
||||||
interceptor = theAppContext.getBean(clazz);
|
interceptor = theAppContext.getBean(clazz);
|
||||||
|
ourLog.info("registering custom interceptor as bean: {}", className);
|
||||||
} catch (NoSuchBeanDefinitionException ex) {
|
} catch (NoSuchBeanDefinitionException ex) {
|
||||||
// no op - if it's not a bean we'll try to create it
|
// no op - if it's not a bean we'll try to create it
|
||||||
}
|
}
|
||||||
@@ -501,6 +502,7 @@ public class StarterJpaConfig {
|
|||||||
if (interceptor == null) {
|
if (interceptor == null) {
|
||||||
try {
|
try {
|
||||||
interceptor = clazz.getConstructor().newInstance();
|
interceptor = clazz.getConstructor().newInstance();
|
||||||
|
ourLog.info("registering custom interceptor as pojo: {}", className);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new ConfigurationException("Unable to instantiate interceptor class : " + className, e);
|
throw new ConfigurationException("Unable to instantiate interceptor class : " + className, e);
|
||||||
}
|
}
|
||||||
@@ -532,6 +534,7 @@ public class StarterJpaConfig {
|
|||||||
Object provider = null;
|
Object provider = null;
|
||||||
try {
|
try {
|
||||||
provider = theAppContext.getBean(clazz);
|
provider = theAppContext.getBean(clazz);
|
||||||
|
ourLog.info("registering custom provider as bean: {}", className);
|
||||||
} catch (NoSuchBeanDefinitionException ex) {
|
} catch (NoSuchBeanDefinitionException ex) {
|
||||||
// no op - if it's not a bean we'll try to create it
|
// no op - if it's not a bean we'll try to create it
|
||||||
}
|
}
|
||||||
@@ -540,6 +543,7 @@ public class StarterJpaConfig {
|
|||||||
if (provider == null) {
|
if (provider == null) {
|
||||||
try {
|
try {
|
||||||
provider = clazz.getConstructor().newInstance();
|
provider = clazz.getConstructor().newInstance();
|
||||||
|
ourLog.info("registering custom provider as pojo: {}", className);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new ConfigurationException("Unable to instantiate provider class : " + className, e);
|
throw new ConfigurationException("Unable to instantiate provider class : " + className, e);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user