Package org.hibernate.validation.util

Examples of org.hibernate.validation.util.GetDeclaredMethods


      action.run();
    }
  }

  private void initMethodConstraints(Class<?> clazz, AnnotationIgnores annotationIgnores) {
    GetDeclaredMethods action = GetDeclaredMethods.action( clazz );
    final Method[] declaredMethods;
    if ( System.getSecurityManager() != null ) {
      declaredMethods = AccessController.doPrivileged( action );
    }
    else {
      declaredMethods = action.run();
    }

    for ( Method method : declaredMethods ) {
      // HV-172
      if ( Modifier.isStatic( method.getModifiers() ) ) {
View Full Code Here


        ", isReportAsSingleInvalidConstraint=" + isReportAsSingleInvalidConstraint +
        '}';
  }

  private Map<String, Object> buildAnnotationParameterMap(Annotation annotation) {
    GetDeclaredMethods action = GetDeclaredMethods.action( annotation.annotationType() );
    final Method[] declaredMethods;
    if ( System.getSecurityManager() != null ) {
      declaredMethods = AccessController.doPrivileged( action );
    }
    else {
      declaredMethods = action.run();
    }
    Map<String, Object> parameters = new HashMap<String, Object>( declaredMethods.length );
    for ( Method m : declaredMethods ) {
      try {
        parameters.put( m.getName(), m.invoke( annotation ) );
View Full Code Here

  }

  private Map<Method, Object> getAnnotationValues(AnnotationDescriptor descriptor) {
    Map<Method, Object> result = new HashMap<Method, Object>();
    int processedValuesFromDescriptor = 0;
    GetDeclaredMethods action = GetDeclaredMethods.action( annotationType );
    final Method[] declaredMethods;
    if ( System.getSecurityManager() != null ) {
      declaredMethods = AccessController.doPrivileged( action );
    }
    else {
      declaredMethods = action.run();
    }
    for ( Method m : declaredMethods ) {
      if ( descriptor.containsElement( m.getName() ) ) {
        result.put( m, descriptor.valueOf( m.getName() ) );
        processedValuesFromDescriptor++;
View Full Code Here

TOP

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

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.