Package org.hibernate.validation.util

Examples of org.hibernate.validation.util.ContainsMethod


  }

  private void parsePropertyLevelOverrides(List<GetterType> getters, Class<?> beanClass, String defaultPackage) {
    for ( GetterType getterType : getters ) {
      String getterName = getterType.getName();
      ContainsMethod cmAction =  ContainsMethod.action( beanClass, getterName );
      boolean containsMethod;
      if ( System.getSecurityManager() != null ) {
        containsMethod = AccessController.doPrivileged( cmAction );
      }
      else {
        containsMethod = cmAction.run();
      }
      if ( !containsMethod ) {
        throw new ValidationException( beanClass.getName() + " does not contain the property  " + getterName );
      }
      final Method method;
View Full Code Here

TOP

Related Classes of org.hibernate.validation.util.ContainsMethod

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.