Examples of run()


Examples of org.hibernate.validation.util.ContainsMethod.run()

      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

Examples of org.hibernate.validation.util.GetClassLoader.run()

  }

  private Schema getMappingSchema() {
    boolean isSecured = System.getSecurityManager() != null;
    GetClassLoader action = GetClassLoader.fromClass( XmlMappingParser.class );
    ClassLoader loader = isSecured ? AccessController.doPrivileged( action ) : action.run();
    URL schemaUrl = loader.getResource( VALIDATION_MAPPING_XSD );
    SchemaFactory sf = SchemaFactory.newInstance( javax.xml.XMLConstants.W3C_XML_SCHEMA_NS_URI );
    Schema schema = null;
    try {
      schema = sf.newSchema( schemaUrl );
View Full Code Here

Examples of org.hibernate.validation.util.GetDeclaredField.run()

      final Field field;
      if ( System.getSecurityManager() != null ) {
        field = AccessController.doPrivileged( action );
      }
      else {
        field = action.run();
      }

      // ignore annotations
      boolean ignoreFieldAnnotation = fieldType.isIgnoreAnnotations() == null ? false : fieldType.isIgnoreAnnotations();
      if ( ignoreFieldAnnotation ) {
View Full Code Here

Examples of org.hibernate.validation.util.GetDeclaredFields.run()

    final Field[] fields;
    if ( System.getSecurityManager() != null ) {
      fields = AccessController.doPrivileged( action );
    }
    else {
      fields = action.run();
    }
    for ( Field field : fields ) {
      // HV-172
      if ( Modifier.isStatic( field.getModifiers() ) ) {
        continue;
View Full Code Here

Examples of org.hibernate.validation.util.GetDeclaredMethods.run()

    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

Examples of org.hibernate.validation.util.GetMethod.run()

    GetMethod action = GetMethod.action( annotationClass, name );
    if ( System.getSecurityManager() != null ) {
      m = AccessController.doPrivileged( action );
    }
    else {
      m = action.run();
    }

    if ( m == null ) {
      throw new ValidationException( "Annotation of type " + annotationClass.getName() + " does not contain a paramter " + name + "." );
    }
View Full Code Here

Examples of org.hibernate.validation.util.GetMethodFromPropertyName.run()

      GetMethodFromPropertyName action = GetMethodFromPropertyName.action( beanClass, getterName );
      if ( System.getSecurityManager() != null ) {
        method = AccessController.doPrivileged( action );
      }
      else {
        method = action.run();
      }

      // ignore annotations
      boolean ignoreGetterAnnotation = getterType.isIgnoreAnnotations() == null ? false : getterType.isIgnoreAnnotations();
      if ( ignoreGetterAnnotation ) {
View Full Code Here

Examples of org.hibernate.validation.util.GetMethods.run()

    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

Examples of org.hibernate.validation.util.LoadClass.run()

    LoadClass action = LoadClass.action( className, caller );
    if (System.getSecurityManager() != null) {
      return AccessController.doPrivileged( action );
    }
    else {
      return action.run();
    }
  }

  private List<Class<? extends ConstraintValidator<? extends Annotation, ?>>> findConstraintValidatorClasses(Class<? extends Annotation> annotationType) {
    List<Class<? extends ConstraintValidator<? extends Annotation, ?>>> constraintValidatorDefinitonClasses = new ArrayList<Class<? extends ConstraintValidator<? extends Annotation, ?>>>();
View Full Code Here

Examples of org.hibernate.validation.util.SetAccessibility.run()

    SetAccessibility action = SetAccessibility.action( member );
    if (System.getSecurityManager() != null) {
      AccessController.doPrivileged( action );
    }
    else {
      action.run();
    }
  }

  private void initMethodConstraints(Class<?> clazz, AnnotationIgnores annotationIgnores) {
    GetDeclaredMethods action = GetDeclaredMethods.action( clazz );
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.