Examples of run()


Examples of org.hibernate.validator.util.ContainsField.run()

      ContainsField containsAction = ContainsField.action( beanClass, fieldName );
      if ( System.getSecurityManager() != null ) {
        containsField = AccessController.doPrivileged( containsAction );
      }
      else {
        containsField = containsAction.run();
      }
      if ( !containsField ) {
        throw new ValidationException( beanClass.getName() + " does not contain the fieldType  " + fieldName );
      }
      GetDeclaredField action = GetDeclaredField.action( beanClass, fieldName );
View Full Code Here

Examples of org.hibernate.validator.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.validator.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.validator.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.validator.util.GetDeclaredFields.run()

    final Field[] fields;
    if ( System.getSecurityManager() != null ) {
      fields = AccessController.doPrivileged( action );
    }
    else {
      fields = action.run();
    }
    for ( Field field : fields ) {
      addToPropertyNameList( field );

      // HV-172
View Full Code Here

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

    final Method[] declaredMethods;
    if ( System.getSecurityManager() != null ) {
      declaredMethods = AccessController.doPrivileged( action );
    }
    else {
      declaredMethods = action.run();
    }

    for ( Method method : declaredMethods ) {
      addToPropertyNameList( method );
View Full Code Here

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

      final Method method;
      if ( System.getSecurityManager() != null ) {
        method = AccessController.doPrivileged( getMethod );
      }
      else {
        method = getMethod.run();
      }
      if (method != null) {
        Class returnType = method.getReturnType();
        if ( returnType.isArray() && returnType.getComponentType().isAnnotation() ) {
          Annotation[] annotations = ( Annotation[] ) method.invoke( annotation );
View Full Code Here

Examples of org.hibernate.validator.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.validator.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.getName().startsWith( "valid" ) ) {
        String msg = "Parameters starting with 'valid' are not allowed in a constraint.";
        throw new ConstraintDefinitionException( msg );
View Full Code Here

Examples of org.hibernate.validator.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, ?>>> constraintValidatorDefinitionClasses = new ArrayList<Class<? extends ConstraintValidator<? extends Annotation, ?>>>();
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.