This commit is contained in:
Arjen Poutsma 2009-04-21 22:16:32 +00:00
parent afa461892f
commit dfa4b3e397
1 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2008 the original author or authors. * Copyright 2002-2009 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -21,13 +21,13 @@ import org.springframework.web.context.request.NativeWebRequest;
/** /**
* SPI for resolving custom arguments for a specific handler method parameter. * SPI for resolving custom arguments for a specific handler method parameter.
* Typically implemented to detect sppecial parameter types, resolving * Typically implemented to detect special parameter types, resolving
* well-known argument values for them. * well-known argument values for them.
* *
* <p>A typical implementation could look like as follows: * <p>A typical implementation could look like as follows:
* *
* <pre class="code"> * <pre class="code">
* public class MySpecialArgumentResolver implements ArgumentResolver { * public class MySpecialArgumentResolver implements WebArgumentResolver {
* *
* public Object resolveArgument(MethodParameter methodParameter, NativeWebRequest webRequest) { * public Object resolveArgument(MethodParameter methodParameter, NativeWebRequest webRequest) {
* if (methodParameter.getParameterType().equals(MySpecialArg.class)) { * if (methodParameter.getParameterType().equals(MySpecialArg.class)) {