Polishing

This commit is contained in:
Juergen Hoeller
2014-07-29 14:11:19 +02:00
parent 89d63eb79b
commit 3bcfc591e9
2 changed files with 5 additions and 3 deletions

View File

@@ -51,11 +51,11 @@ public aspect AnnotationBeanConfigurerAspect extends AbstractInterfaceDrivenDepe
public void setBeanFactory(BeanFactory beanFactory) {
this.beanConfigurerSupport.setBeanFactory(beanFactory);
this.beanConfigurerSupport.setBeanWiringInfoResolver(new AnnotationBeanWiringInfoResolver());
this.beanConfigurerSupport.setBeanFactory(beanFactory);
}
public void afterPropertiesSet() throws Exception {
public void afterPropertiesSet() {
this.beanConfigurerSupport.afterPropertiesSet();
}
@@ -63,7 +63,7 @@ public aspect AnnotationBeanConfigurerAspect extends AbstractInterfaceDrivenDepe
this.beanConfigurerSupport.configureBean(bean);
}
public void destroy() throws Exception {
public void destroy() {
this.beanConfigurerSupport.destroy();
}

View File

@@ -233,6 +233,7 @@ public class ExceptionHandlerExceptionResolver extends AbstractHandlerMethodExce
return this.applicationContext;
}
@Override
public void afterPropertiesSet() {
// Do this first, it may add ResponseBodyAdvice beans
@@ -335,6 +336,7 @@ public class ExceptionHandlerExceptionResolver extends AbstractHandlerMethodExce
return handlers;
}
/**
* Find an {@code @ExceptionHandler} method and invoke it to handle the raised exception.
*/