@Component(value="core_BeanArgumentResolver") public class BeanArgumentResolver extends java.lang.Object implements MethodArgumentResolver
Locale
as method argument.
Current user session locale will be returned if user is authorized otherwise will be returned default system localeModifier and Type | Field and Description |
---|---|
protected org.springframework.context.ApplicationContext |
applicationContext |
Constructor and Description |
---|
BeanArgumentResolver() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
resolveArgument(org.springframework.core.MethodParameter parameter)
Resolves a method parameter into an argument value.
|
boolean |
supportsParameter(org.springframework.core.MethodParameter parameter)
Whether the given method parameter is
supported by this resolver.
|
@Autowired protected org.springframework.context.ApplicationContext applicationContext
public boolean supportsParameter(org.springframework.core.MethodParameter parameter)
MethodArgumentResolver
supportsParameter
in interface MethodArgumentResolver
parameter
- the method parameter to checktrue
if this resolver supports the supplied parameter;
false
otherwisepublic java.lang.Object resolveArgument(org.springframework.core.MethodParameter parameter)
MethodArgumentResolver
resolveArgument
in interface MethodArgumentResolver
parameter
- the method parameter to resolve. This parameter must
have previously been passed to MethodArgumentResolver.supportsParameter(org.springframework.core.MethodParameter)
which must
have returned true
.null
if not resolvable