Examples of InitBinder


Examples of org.springframework.web.bind.annotation.InitBinder

   * invoked to initialize the given WebDataBinder.
   * <p>The default implementation checks if target object name is included
   * in the attribute names specified in the {@code @InitBinder} annotation.
   */
  protected boolean isBinderMethodApplicable(HandlerMethod initBinderMethod, WebDataBinder binder) {
    InitBinder annot = initBinderMethod.getMethodAnnotation(InitBinder.class);
    Collection<String> names = Arrays.asList(annot.value());
    return (names.size() == 0 || names.contains(binder.getObjectName()));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.