Add @Override annotations to main sources

Issue: SPR-10130
This commit is contained in:
Chris Beams
2012-12-28 14:00:16 +01:00
parent 9c2046c3ee
commit 3b40ce76bf
1256 changed files with 5716 additions and 0 deletions

View File

@@ -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");

View File

@@ -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);

View File

@@ -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() + "'");