クラス ProxyingHandlerMethodArgumentResolver
java.lang.ObjectSE
org.springframework.web.method.annotation.ModelAttributeMethodProcessor
org.springframework.data.web.ProxyingHandlerMethodArgumentResolver
- 実装済みのインターフェース一覧:
Aware, BeanClassLoaderAware, BeanFactoryAware, HandlerMethodArgumentResolver, HandlerMethodReturnValueHandler
public class ProxyingHandlerMethodArgumentResolver
extends ModelAttributeMethodProcessor
implements BeanFactoryAware, BeanClassLoaderAware
HandlerMethodArgumentResolver to create Proxy instances for interface-based controller method parameters. Resolution requires the method parameter or its interface type to be annotated with ProjectedPayload .By default, data binding for collection properties is limited to 1024 elements. This limit can be overridden by setting the "spring.data.web.projection.collection-limit" Spring property.
- 導入:
- 1.10
- 作成者:
- Oliver Gierke, Chris Bono, Mark Paluch, Christoph Strobl
フィールド概要
フィールド修飾子と型フィールド説明static final StringSEName of the Spring property to configure the collection size limit for data binding.クラス ModelAttributeMethodProcessor から継承されたフィールド
loggerコンストラクター概要
コンストラクターコンストラクター説明ProxyingHandlerMethodArgumentResolver(ObjectFactory<ConversionService> conversionService, boolean annotationNotRequired) 指定されたConversionServiceを使用して新しいProxyingHandlerMethodArgumentResolverを作成します。方法の概要
修飾子と型メソッド説明protected voidbindRequestParameters(WebDataBinder binder, NativeWebRequest request) protected ObjectSEcreateAttribute(StringSE attributeName, MethodParameter parameter, WebDataBinderFactory binderFactory, NativeWebRequest request) voidsetBeanClassLoader(ClassLoaderSE classLoader) voidsetBeanFactory(BeanFactory beanFactory) booleansupportsParameter(MethodParameter parameter)
フィールドの詳細
COLLECTION_SIZE_LIMIT_PARAM
Name of the Spring property to configure the collection size limit for data binding.- 関連事項:
コンストラクターの詳細
ProxyingHandlerMethodArgumentResolver
public ProxyingHandlerMethodArgumentResolver(ObjectFactory<ConversionService> conversionService, boolean annotationNotRequired) 指定されたConversionServiceを使用して新しいProxyingHandlerMethodArgumentResolverを作成します。- パラメーター:
conversionService- null であってはなりません。annotationNotRequired- whether interface-based method arguments are considered without requiring a@ModelAttributeannotation.
方法の詳細
setBeanFactory
- 次で指定:
- インターフェース
BeanFactoryAware内のsetBeanFactory - 例外:
BeansException
setBeanClassLoader
- 次で指定:
- インターフェース
BeanClassLoaderAware内のsetBeanClassLoader
supportsParameter
- 次で指定:
- インターフェース
HandlerMethodArgumentResolver内のsupportsParameter - オーバーライド:
- クラス
ModelAttributeMethodProcessorのsupportsParameter
createAttribute
protected ObjectSE createAttribute(StringSE attributeName, MethodParameter parameter, WebDataBinderFactory binderFactory, NativeWebRequest request) throws ExceptionSE - オーバーライド:
- クラス
ModelAttributeMethodProcessorのcreateAttribute - 例外:
ExceptionSE
bindRequestParameters
- オーバーライド:
- クラス
ModelAttributeMethodProcessorのbindRequestParameters