Package javax.validation.bootstrap

Examples of javax.validation.bootstrap.GenericBootstrap


        list.add( new TCKValidationProvider() );
        return list;
      }
    };

    GenericBootstrap bootstrap = Validation.byDefaultProvider();
    Configuration<?> config = bootstrap.providerResolver( resolver ).configure();

    ValidatorFactory factory = config.buildValidatorFactory();
    assertTrue( factory instanceof TCKValidationProvider.DummyValidatorFactory );
  }
View Full Code Here


                                                         ConstraintValidatorFactory constraintValidatorFactory) {

        ValidationProviderResolver resolvedValidationProviderResolver =
                resolveValidationProviderResolver(osgi, validationProviderResolver);

        GenericBootstrap bootstrap = Validation.byDefaultProvider();
        if (resolvedValidationProviderResolver != null) {
            bootstrap.providerResolver(resolvedValidationProviderResolver);
        }
        Configuration<?> configuration = bootstrap.configure();

        if (messageInterpolator != null) {
            configuration.messageInterpolator(messageInterpolator);
        }
View Full Code Here

  public static Configuration<?> getConfigurationUnderTest() {
    if (validationProviderUnderTest == null) {
      instantiateValidationProviderUnderTest();
    }

    GenericBootstrap bootstrap = Validation.byDefaultProvider();
    return bootstrap.configure();
  }
View Full Code Here

            try {
                List<String> mappingsList = getValidationMappingDescriptors(archive);

                if (mappingsList.size() > 0) {
                    GenericBootstrap bootstrap = Validation.byDefaultProvider();
                    Configuration config = bootstrap.configure();

                    InputStream inputStream = null;
                    try {
                        for (String fileName : mappingsList) {
                            inputStream = archive.getEntry(fileName);
View Full Code Here

        list.add( new TCKValidationProvider() );
        return list;
      }
    };

    GenericBootstrap bootstrap = Validation.byDefaultProvider();
    Configuration<?> config = bootstrap.providerResolver( resolver ).configure();

    ValidatorFactory factory = config.buildValidatorFactory();
    assertTrue( factory instanceof TCKValidationProvider.DummyValidatorFactory );
  }
View Full Code Here

        list.add( new TCKValidationProvider() );
        return list;
      }
    };

    GenericBootstrap bootstrap = Validation.byDefaultProvider();
    Configuration<?> config = bootstrap.providerResolver( resolver ).configure();

    ValidatorFactory factory = config.buildValidatorFactory();
    assertTrue( factory instanceof TCKValidationProvider.DummyValidatorFactory );
  }
View Full Code Here

   *
   * @return instance building a generic <code>Configuration</code>
   *         compliant with the bootstrap state provided.
   */
  public static GenericBootstrap byDefaultProvider() {
    GenericBootstrap bootstrap = new GenericBootstrap() {
     
      @Override
      public GenericBootstrap providerResolver(ValidationProviderResolver resolver) {
        return this;
      }
View Full Code Here

        list.add( new TCKValidationProvider() );
        return list;
      }
    };

    GenericBootstrap bootstrap = Validation.byDefaultProvider();
    Configuration<?> config = bootstrap.providerResolver( resolver ).configure();

    ValidatorFactory factory = config.buildValidatorFactory();
    assertTrue( factory instanceof TCKValidationProvider.DummyValidatorFactory );
  }
View Full Code Here

            try {
                List<String> mappingsList = getValidationMappingDescriptors(archive);

                if (mappingsList.size() > 0) {
                    GenericBootstrap bootstrap = Validation.byDefaultProvider();
                    Configuration config = bootstrap.configure();

                    InputStream inputStream = null;
                    try {
                        for (String fileName : mappingsList) {
                            inputStream = archive.getEntry(fileName);
View Full Code Here

TOP

Related Classes of javax.validation.bootstrap.GenericBootstrap

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.