public HandlerMethodInvoker(HandlerMethodResolver methodResolver, WebBindingInitializer bindingInitializer, SessionAttributeStore sessionAttributeStore, ParameterNameDiscoverer parameterNameDiscoverer, WebArgumentResolver[] customArgumentResolvers, HttpMessageConverter<?>[] messageConverters) { this.methodResolver = methodResolver; this.bindingInitializer = bindingInitializer; this.sessionAttributeStore = sessionAttributeStore; this.parameterNameDiscoverer = parameterNameDiscoverer; this.customArgumentResolvers = customArgumentResolvers; this.messageConverters = messageConverters; }
public HandlerMethodInvoker(HandlerMethodResolver methodResolver, WebBindingInitializer bindingInitializer, SessionAttributeStore sessionAttributeStore, ParameterNameDiscoverer parameterNameDiscoverer, WebArgumentResolver[] customArgumentResolvers, HttpMessageConverter[] messageConverters) { this.methodResolver = methodResolver; this.bindingInitializer = bindingInitializer; this.sessionAttributeStore = sessionAttributeStore; this.parameterNameDiscoverer = parameterNameDiscoverer; this.customArgumentResolvers = customArgumentResolvers; this.messageConverters = messageConverters; }
private DataBinder bindInternal(HttpServletRequest request, Model model, Object object, String objectName) { final WebBindingInitializer wbi = requestMappingHandlerAdapter.getWebBindingInitializer(); ExtendedServletRequestDataBinder binder = new ExtendedServletRequestDataBinder(object, objectName); wbi.initBinder(binder, new ServletWebRequest(request)); initBinder(binder); binder.bind(request); model.addAttribute(objectName, object); model.addAttribute("org.springframework.validation.BindingResult." + objectName, binder.getBindingResult()); return binder; }
public HandlerMethodInvoker(HandlerMethodResolver methodResolver, WebBindingInitializer bindingInitializer) { this(methodResolver, bindingInitializer, new DefaultSessionAttributeStore(), null, null, null); }
/** * Return the configured WebBindingInitializer, or {@code null} if none. */ public WebBindingInitializer getWebBindingInitializer() { return this.webBindingInitializer; }
/** * Return the configured WebBindingInitializer, or {@code null}. */ public WebBindingInitializer getWebBindingInitializer() { return webBindingInitializer; }
/** * Specify a WebBindingInitializer which will apply pre-configured * configuration to every DataBinder that this controller uses. */ public void setWebBindingInitializer( WebBindingInitializer webBindingInitializer) { this.webBindingInitializer = webBindingInitializer; }
/** * Create a new instance. * @param binderMethods {@code @InitBinder} methods, or {@code null} * @param initializer for global data binder intialization */ public InitBinderDataBinderFactory(List<InvocableHandlerMethod> binderMethods, WebBindingInitializer initializer) { super(initializer); this.binderMethods = (binderMethods != null) ? binderMethods : new ArrayList<InvocableHandlerMethod>(); }
/** * Specify a WebBindingInitializer which will apply pre-configured * configuration to every DataBinder that this controller uses. */ public void setWebBindingInitializer(WebBindingInitializer webBindingInitializer) { this.webBindingInitializer = webBindingInitializer; }
/** * Specify a WebBindingInitializer which will apply pre-configured * configuration to every DataBinder that this controller uses. * <p>Allows for factoring out the entire binder configuration * to separate objects, as an alternative to {@link #initBinder}. */ public final void setWebBindingInitializer(WebBindingInitializer webBindingInitializer) { this.webBindingInitializer = webBindingInitializer; }
/** * Return the WebBindingInitializer (if any) which will apply pre-configured * configuration to every DataBinder that this controller uses. */ public final WebBindingInitializer getWebBindingInitializer() { return this.webBindingInitializer; }
/** * Create a new instance. * @param binderMethods one or more {@code @InitBinder} methods * @param initializer provides global data binder initialization */ public ServletRequestDataBinderFactory(List<InvocableHandlerMethod> binderMethods, WebBindingInitializer initializer) { super(binderMethods, initializer); }
/** * Provide a WebBindingInitializer with "global" initialization to apply * to every DataBinder instance. */ public void setWebBindingInitializer(WebBindingInitializer webBindingInitializer) { this.webBindingInitializer = webBindingInitializer; }
/** * Create a new instance. * * @param binderMethods one or more {@code @InitBinder} methods * @param initializer provides global data binder initialization */ public Jackson2ServletRequestDataBinderFactory( List<InvocableHandlerMethod> binderMethods, WebBindingInitializer initializer) { super(binderMethods, initializer); }
/** * Create a new instance. * * @param binderMethods one or more {@code @InitBinder} methods * @param initializer provides global data binder initialization */ public UifServletRequestDataBinderFactory(List<InvocableHandlerMethod> binderMethods, WebBindingInitializer initializer) { super(binderMethods, initializer); }