Package org.hibernate.validation.util

Examples of org.hibernate.validation.util.GetMethods


  }

  private Map<ClassIndexWrapper, Map<String, Object>> parseOverrideParameters() {
    Map<ClassIndexWrapper, Map<String, Object>> overrideParameters = new HashMap<ClassIndexWrapper, Map<String, Object>>();
    final Method[] methods;
    final GetMethods getMethods = GetMethods.action( annotation.annotationType() );
    if ( System.getSecurityManager() != null ) {
      methods = AccessController.doPrivileged( getMethods );
    }
    else {
      methods = getMethods.run();
    }

    for ( Method m : methods ) {
      if ( m.getAnnotation( OverridesAttribute.class ) != null ) {
        addOverrideAttributes(
View Full Code Here


    return true;
  }

  private void assertNoParameterStartsWithValid(Annotation annotation) {
    final Method[] methods;
    final GetMethods getMethods = GetMethods.action( annotation.annotationType() );
    if ( System.getSecurityManager() != null ) {
      methods = AccessController.doPrivileged( getMethods );
    }
    else {
      methods = getMethods.run();
    }
    for ( Method m : methods ) {
      if ( m.getName().startsWith( "valid" ) ) {
        String msg = "Parameters starting with 'valid' are not allowed in a constraint.";
        throw new ConstraintDefinitionException( msg );
View Full Code Here

TOP

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

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.