Package org.springframework.web.bind.annotation

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

Related Classes of org.springframework.web.bind.annotation.InitBinder

Copyright © 2018 www.massapicom. 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.