Skip to content

Commit 1c45c51

Browse files
committed
overhaul of support package arrangements for handler method processing; added missing package-info files
1 parent 2065b78 commit 1c45c51

File tree

79 files changed

+194
-149
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+194
-149
lines changed

org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/config/AnnotationDrivenBeanDefinitionParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
import org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver;
6161
import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter;
6262
import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping;
63-
import org.springframework.web.servlet.mvc.method.annotation.support.ServletWebArgumentResolverAdapter;
63+
import org.springframework.web.servlet.mvc.method.annotation.ServletWebArgumentResolverAdapter;
6464
import org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver;
6565
import org.w3c.dom.Element;
6666

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
/**
3+
*
4+
* Annotation-based setup for Spring MVC.
5+
*
6+
*/
7+
package org.springframework.web.servlet.config.annotation;
8+
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11

22
/**
3-
* Defines the Spring MVC configuration namespace.
3+
*
4+
* Defines the XML configuration namespace for Spring MVC.
5+
*
46
*/
57
package org.springframework.web.servlet.config;
68

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
/**
3+
*
4+
* Common MVC logic for matching incoming requests based on conditions.
5+
*
6+
*/
7+
package org.springframework.web.servlet.mvc.condition;
8+
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.web.servlet.mvc.method.annotation.support;
17+
package org.springframework.web.servlet.mvc.method.annotation;
1818

1919
import java.io.IOException;
2020
import java.util.ArrayList;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.web.servlet.mvc.method.annotation.support;
17+
package org.springframework.web.servlet.mvc.method.annotation;
1818

1919
import java.io.IOException;
2020
import java.util.ArrayList;

org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ExceptionHandlerExceptionResolver.java

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@
3636
import org.springframework.web.context.request.ServletWebRequest;
3737
import org.springframework.web.method.HandlerMethod;
3838
import org.springframework.web.method.annotation.ExceptionHandlerMethodResolver;
39-
import org.springframework.web.method.annotation.support.MapMethodProcessor;
40-
import org.springframework.web.method.annotation.support.ModelAttributeMethodProcessor;
41-
import org.springframework.web.method.annotation.support.ModelMethodProcessor;
39+
import org.springframework.web.method.annotation.MapMethodProcessor;
40+
import org.springframework.web.method.annotation.ModelAttributeMethodProcessor;
41+
import org.springframework.web.method.annotation.ModelMethodProcessor;
4242
import org.springframework.web.method.support.HandlerMethodArgumentResolver;
4343
import org.springframework.web.method.support.HandlerMethodArgumentResolverComposite;
4444
import org.springframework.web.method.support.HandlerMethodReturnValueHandler;
@@ -47,13 +47,6 @@
4747
import org.springframework.web.servlet.ModelAndView;
4848
import org.springframework.web.servlet.View;
4949
import org.springframework.web.servlet.handler.AbstractHandlerMethodExceptionResolver;
50-
import org.springframework.web.servlet.mvc.method.annotation.support.HttpEntityMethodProcessor;
51-
import org.springframework.web.servlet.mvc.method.annotation.support.ModelAndViewMethodReturnValueHandler;
52-
import org.springframework.web.servlet.mvc.method.annotation.support.RequestResponseBodyMethodProcessor;
53-
import org.springframework.web.servlet.mvc.method.annotation.support.ServletRequestMethodArgumentResolver;
54-
import org.springframework.web.servlet.mvc.method.annotation.support.ServletResponseMethodArgumentResolver;
55-
import org.springframework.web.servlet.mvc.method.annotation.support.ViewMethodReturnValueHandler;
56-
import org.springframework.web.servlet.mvc.method.annotation.support.ViewNameMethodReturnValueHandler;
5750

5851
/**
5952
* An {@link AbstractHandlerMethodExceptionResolver} that resolves exceptions
@@ -310,7 +303,7 @@ protected ModelAndView doResolveHandlerMethodException(HttpServletRequest reques
310303
protected ServletInvocableHandlerMethod getExceptionHandlerMethod(HandlerMethod handlerMethod, Exception exception) {
311304
Class<?> handlerType = handlerMethod.getBeanType();
312305
Method method = getExceptionHandlerMethodResolver(handlerType).resolveMethod(exception);
313-
return (method != null) ? new ServletInvocableHandlerMethod(handlerMethod.getBean(), method) : null;
306+
return (method != null ? new ServletInvocableHandlerMethod(handlerMethod.getBean(), method) : null);
314307
}
315308

316309
/**

org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ExtendedServletRequestDataBinder.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
package org.springframework.web.servlet.mvc.method.annotation;
1818

1919
import java.util.Map;
20-
2120
import javax.servlet.ServletRequest;
2221

2322
import org.springframework.beans.MutablePropertyValues;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.web.servlet.mvc.method.annotation.support;
17+
package org.springframework.web.servlet.mvc.method.annotation;
1818

1919
import java.io.IOException;
2020
import java.lang.reflect.Array;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.web.servlet.mvc.method.annotation.support;
17+
package org.springframework.web.servlet.mvc.method.annotation;
1818

1919
import org.springframework.core.MethodParameter;
2020
import org.springframework.web.context.request.NativeWebRequest;

0 commit comments

Comments
 (0)