Package org.hibernate.validator.internal.metadata

Examples of org.hibernate.validator.internal.metadata.BeanMetaDataManager


    Integer softRefLimit = checkProperty(
        properties,
        HibernateValidatorConfiguration.METADATA_CACHE_SOFT_REF_LIMIT,
        Integer.class
    );
    metaDataManager = new BeanMetaDataManager( constraintHelper, metaDataProviders, hardRefLimit, softRefLimit );
  }
View Full Code Here


        configurationState, tmpFailFast
    );

    this.failFast = tmpFailFast;

    metaDataManager = new BeanMetaDataManager( constraintHelper, metaDataProviders );
  }
View Full Code Here

  Validator createValidator(ConstraintValidatorFactory constraintValidatorFactory,
                MessageInterpolator messageInterpolator,
                TraversableResolver traversableResolver,
                ParameterNameProvider parameterNameProvider,
                boolean failFast) {
    BeanMetaDataManager beanMetaDataManager;
    if ( !beanMetaDataManagerMap.containsKey( parameterNameProvider ) ) {
      beanMetaDataManager = new BeanMetaDataManager(
          constraintHelper,
          parameterNameProvider,
          buildDataProviders( parameterNameProvider )
      );
      beanMetaDataManagerMap.put( parameterNameProvider, beanMetaDataManager );
View Full Code Here

  Validator createValidator(ConstraintValidatorFactory constraintValidatorFactory,
                MessageInterpolator messageInterpolator,
                TraversableResolver traversableResolver,
                ParameterNameProvider parameterNameProvider,
                boolean failFast) {
    BeanMetaDataManager beanMetaDataManager;
    if ( !beanMetaDataManagerMap.containsKey( parameterNameProvider ) ) {
      beanMetaDataManager = new BeanMetaDataManager(
          constraintHelper,
          parameterNameProvider,
          buildDataProviders( parameterNameProvider )
      );
      beanMetaDataManagerMap.put( parameterNameProvider, beanMetaDataManager );
View Full Code Here

  Validator createValidator(ConstraintValidatorFactory constraintValidatorFactory,
                MessageInterpolator messageInterpolator,
                TraversableResolver traversableResolver,
                ParameterNameProvider parameterNameProvider,
                boolean failFast) {
    BeanMetaDataManager beanMetaDataManager;
    if ( !beanMetaDataManagerMap.containsKey( parameterNameProvider ) ) {
      beanMetaDataManager = new BeanMetaDataManager(
          constraintHelper,
          executableHelper,
          parameterNameProvider,
          buildDataProviders( parameterNameProvider )
      );
View Full Code Here

    }
    tmpFailFast = checkPropertiesForFailFast(
        properties, tmpFailFast
    );
    this.failFast = tmpFailFast;
    metaDataManager = new BeanMetaDataManager( constraintHelper, metaDataProviders );
  }
View Full Code Here

    }
    tmpFailFast = checkPropertiesForFailFast(
        properties, tmpFailFast
    );
    this.failFast = tmpFailFast;
    metaDataManager = new BeanMetaDataManager( constraintHelper, parameterNameProvider, metaDataProviders );
    constraintValidatorManager = new ConstraintValidatorManager(configurationState.getConstraintValidatorFactory());
  }
View Full Code Here

      MessageInterpolator messageInterpolator,
      TraversableResolver traversableResolver,
      ParameterNameProvider parameterNameProvider,
      boolean failFast,
      List<ValidatedValueUnwrapper<?>> validatedValueHandlers) {
    BeanMetaDataManager beanMetaDataManager;
    if ( !beanMetaDataManagerMap.containsKey( parameterNameProvider ) ) {
      beanMetaDataManager = new BeanMetaDataManager(
          constraintHelper,
          executableHelper,
          parameterNameProvider,
          buildDataProviders( parameterNameProvider )
      );
View Full Code Here

      catch ( ClassNotFoundException e ) {
        throw log.getMissingELDependenciesException();
      }
    }

    BeanMetaDataManager beanMetaDataManager;
    if ( !beanMetaDataManagerMap.containsKey( parameterNameProvider ) ) {
      beanMetaDataManager = new BeanMetaDataManager(
          constraintHelper,
          executableHelper,
          parameterNameProvider,
          buildDataProviders( parameterNameProvider )
      );
View Full Code Here

            "addItem",
            Key.class,
            Item.class
        )
    );
    BeanMetaDataManager beanMetaDataManager = new BeanMetaDataManager(
        new ConstraintHelper(),
        new ExecutableHelper( new TypeResolutionHelper() ),
        new DefaultParameterNameProvider(),
        Collections.<MetaDataProvider>emptyList()
    );

    ExecutableMetaData executableMetaData = beanMetaDataManager.getBeanMetaData( Container.class )
        .getMetaDataFor( executable );

    PathImpl methodParameterPath = PathImpl.createPathForExecutable( executableMetaData );

    assertEquals( methodParameterPath.toString(), "addItem" );
View Full Code Here

TOP

Related Classes of org.hibernate.validator.internal.metadata.BeanMetaDataManager

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.