Examples of PlatformResourceBundleLocator


Examples of org.hibernate.validator.engine.resourceloading.PlatformResourceBundleLocator

   * @deprecated Use {@link ResourceBundleMessageInterpolator#ResourceBundleMessageInterpolator(ResourceBundleLocator)} instead.
   */
  @Deprecated
  public ResourceBundleMessageInterpolator(final ResourceBundle resourceBundle) {
    this(
        new PlatformResourceBundleLocator( Constants.USER_VALIDATION_MESSAGES ) {
          public ResourceBundle getResourceBundle(Locale locale) {
            return locale == Locale.getDefault() ? resourceBundle : super.getResourceBundle( locale );
          }
        }
    );
View Full Code Here

Examples of org.hibernate.validator.engine.resourceloading.PlatformResourceBundleLocator

  public ResourceBundleMessageInterpolator(ResourceBundleLocator userResourceBundleLocator) {

    defaultLocale = Locale.getDefault();

    if ( userResourceBundleLocator == null ) {
      userResourceBundleLocator = new PlatformResourceBundleLocator( Constants.USER_VALIDATION_MESSAGES );
    }

    this.userResourceBundleLocator = new CachingResourceBundleLocator( userResourceBundleLocator );

    this.defaultResourceBundleLocator =
        new CachingResourceBundleLocator(
            new PlatformResourceBundleLocator( Constants.DEFAULT_VALIDATION_MESSAGES )
        );
  }
View Full Code Here

Examples of org.hibernate.validator.resourceloading.PlatformResourceBundleLocator

  /**
   * @param userResourceBundleLocator
   * @param cacheMessages
   */
  public CustomValidationMessageInterpolator() {
    super(new PlatformResourceBundleLocator(APPLICATION_RESOURCES_NAME));
  }
View Full Code Here

Examples of org.hibernate.validator.resourceloading.PlatformResourceBundleLocator

  public ResourceBundleMessageInterpolator(ResourceBundleLocator userResourceBundleLocator, boolean cacheMessages) {

    defaultLocale = Locale.getDefault();

    if ( userResourceBundleLocator == null ) {
      this.userResourceBundleLocator = new PlatformResourceBundleLocator( USER_VALIDATION_MESSAGES );
    }
    else {
      this.userResourceBundleLocator = userResourceBundleLocator;
    }

    this.defaultResourceBundleLocator = new PlatformResourceBundleLocator( DEFAULT_VALIDATION_MESSAGES );
    this.cacheMessages = cacheMessages;
  }
View Full Code Here

Examples of org.hibernate.validator.resourceloading.PlatformResourceBundleLocator

  public ResourceBundleMessageInterpolator(ResourceBundleLocator userResourceBundleLocator, boolean cacheMessages) {
    defaultLocale = Locale.getDefault();

    if ( userResourceBundleLocator == null ) {
      this.userResourceBundleLocator = new PlatformResourceBundleLocator( USER_VALIDATION_MESSAGES );
    }
    else {
      this.userResourceBundleLocator = userResourceBundleLocator;
    }

    this.defaultResourceBundleLocator = new PlatformResourceBundleLocator( DEFAULT_VALIDATION_MESSAGES );
    this.cacheMessages = cacheMessages;
  }
View Full Code Here

Examples of org.hibernate.validator.resourceloading.PlatformResourceBundleLocator

  public ResourceBundleMessageInterpolator(ResourceBundleLocator userResourceBundleLocator, boolean cacheMessages) {

    defaultLocale = Locale.getDefault();

    if ( userResourceBundleLocator == null ) {
      this.userResourceBundleLocator = new PlatformResourceBundleLocator( USER_VALIDATION_MESSAGES );
    }
    else {
      this.userResourceBundleLocator = userResourceBundleLocator;
    }

    this.defaultResourceBundleLocator = new PlatformResourceBundleLocator( DEFAULT_VALIDATION_MESSAGES );
    this.cacheMessages = cacheMessages;
  }
View Full Code Here

Examples of org.hibernate.validator.resourceloading.PlatformResourceBundleLocator

    validationBootstrapParameters.setProvider( provider );
  }

  private ConfigurationImpl() {
    this.validationBootstrapParameters = new ValidationBootstrapParameters();
    this.defaultResourceBundleLocator = new PlatformResourceBundleLocator( ResourceBundleMessageInterpolator.USER_VALIDATION_MESSAGES );
    this.defaultTraversableResolver = new DefaultTraversableResolver();
    this.defaultConstraintValidatorFactory = new ConstraintValidatorFactoryImpl();
    this.defaultParameterNameProvider = new DefaultParameterNameProvider();
    this.defaultMessageInterpolator = new ResourceBundleMessageInterpolator( defaultResourceBundleLocator );
  }
View Full Code Here

Examples of org.hibernate.validator.resourceloading.PlatformResourceBundleLocator

  public ResourceBundleMessageInterpolator(ResourceBundleLocator userResourceBundleLocator, boolean cacheMessages) {

    defaultLocale = Locale.getDefault();

    if ( userResourceBundleLocator == null ) {
      this.userResourceBundleLocator = new PlatformResourceBundleLocator( USER_VALIDATION_MESSAGES );
    }
    else {
      this.userResourceBundleLocator = userResourceBundleLocator;
    }

    this.defaultResourceBundleLocator = new PlatformResourceBundleLocator( DEFAULT_VALIDATION_MESSAGES );
    this.cacheMessages = cacheMessages;
  }
View Full Code Here

Examples of org.hibernate.validator.resourceloading.PlatformResourceBundleLocator

  public ResourceBundleMessageInterpolator(ResourceBundleLocator userResourceBundleLocator, boolean cacheMessages) {

    defaultLocale = Locale.getDefault();

    if ( userResourceBundleLocator == null ) {
      this.userResourceBundleLocator = new PlatformResourceBundleLocator( USER_VALIDATION_MESSAGES );
    }
    else {
      this.userResourceBundleLocator = userResourceBundleLocator;
    }

    this.defaultResourceBundleLocator = new PlatformResourceBundleLocator( DEFAULT_VALIDATION_MESSAGES );
    this.cacheMessages = cacheMessages;
  }
View Full Code Here

Examples of org.hibernate.validator.resourceloading.PlatformResourceBundleLocator

    validationBootstrapParameters.setProvider( provider );
  }

  private ConfigurationImpl() {
    this.validationBootstrapParameters = new ValidationBootstrapParameters();
    this.defaultResourceBundleLocator = new PlatformResourceBundleLocator( ResourceBundleMessageInterpolator.USER_VALIDATION_MESSAGES );
    this.defaultTraversableResolver = new DefaultTraversableResolver();
    this.defaultConstraintValidatorFactory = new ConstraintValidatorFactoryImpl();
    this.defaultParameterNameProvider = new DefaultParameterNameProvider();
    this.defaultMessageInterpolator = new ResourceBundleMessageInterpolator( defaultResourceBundleLocator );
  }
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.