Add @Override annotations to main sources
Issue: SPR-10130
This commit is contained in:
@@ -111,6 +111,7 @@ public class TilesConfigurer extends WebApplicationObjectSupport implements Init
|
||||
* @throws DefinitionsFactoryException if an error occurs
|
||||
* @see #createDefinitionsFactory
|
||||
*/
|
||||
@Override
|
||||
public void afterPropertiesSet() throws DefinitionsFactoryException {
|
||||
logger.debug("TilesConfigurer: initializion started");
|
||||
|
||||
|
||||
@@ -52,6 +52,7 @@ class ActionServletAwareProcessor implements DestructionAwareBeanPostProcessor {
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Object postProcessBeforeInitialization(Object bean, String beanName) {
|
||||
if (bean instanceof Action) {
|
||||
((Action) bean).setServlet(this.actionServlet);
|
||||
@@ -59,10 +60,12 @@ class ActionServletAwareProcessor implements DestructionAwareBeanPostProcessor {
|
||||
return bean;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object postProcessAfterInitialization(Object bean, String beanName) {
|
||||
return bean;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void postProcessBeforeDestruction(Object bean, String beanName) {
|
||||
if (bean instanceof Action) {
|
||||
((Action) bean).setServlet(null);
|
||||
|
||||
@@ -213,6 +213,7 @@ public class ContextLoaderPlugIn implements PlugIn {
|
||||
/**
|
||||
* Create the ActionServlet's WebApplicationContext.
|
||||
*/
|
||||
@Override
|
||||
public final void init(ActionServlet actionServlet, ModuleConfig moduleConfig) throws ServletException {
|
||||
long startTime = System.currentTimeMillis();
|
||||
if (logger.isInfoEnabled()) {
|
||||
@@ -345,6 +346,7 @@ public class ContextLoaderPlugIn implements PlugIn {
|
||||
}
|
||||
wac.addBeanFactoryPostProcessor(
|
||||
new BeanFactoryPostProcessor() {
|
||||
@Override
|
||||
public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) {
|
||||
beanFactory.addBeanPostProcessor(new ActionServletAwareProcessor(getActionServlet()));
|
||||
beanFactory.ignoreDependencyType(ActionServlet.class);
|
||||
@@ -385,6 +387,7 @@ public class ContextLoaderPlugIn implements PlugIn {
|
||||
* Close the WebApplicationContext of the ActionServlet.
|
||||
* @see org.springframework.context.ConfigurableApplicationContext#close()
|
||||
*/
|
||||
@Override
|
||||
public void destroy() {
|
||||
getServletContext().log("Closing WebApplicationContext of Struts ActionServlet '" +
|
||||
getServletName() + "', module '" + getModulePrefix() + "'");
|
||||
|
||||
Reference in New Issue
Block a user