Package br.com.caelum.vraptor.core

Examples of br.com.caelum.vraptor.core.SafeResourceBundle


    private final List<Message> errors = new ArrayList<Message>();
  private final ResourceBundle bundle;

    public Validations(ResourceBundle bundle) {
    this.bundle = new SafeResourceBundle(bundle);
  }
View Full Code Here


    private final List<Message> errors = new ArrayList<Message>();
  private final ResourceBundle bundle;

    public Validations(ResourceBundle bundle) {
    this.bundle = new SafeResourceBundle(bundle);
  }
View Full Code Here

    public Validations(ResourceBundle bundle) {
    this.bundle = Suppliers.ofInstance(bundle);
  }

    public Validations() {
      this(new SafeResourceBundle(ResourceBundle.getBundle("messages"), true));
    }
View Full Code Here

    public List<Message> getErrors(final Supplier<ResourceBundle> bundle) {
      final Supplier<ResourceBundle> oldBundle = this.bundle;
      this.bundle = new Supplier<ResourceBundle>() {
      public ResourceBundle get() {
        if (isDefaultBundle(oldBundle)) {
          return new SafeResourceBundle(bundle.get());
        } else {
          return new FallbackResourceBundle(oldBundle.get(), bundle.get());
        }
      }
    };
View Full Code Here

*
*/
public class MockLocalization implements Localization {

  public ResourceBundle getBundle() {
    return new SafeResourceBundle(new EmptyBundle());
  }
View Full Code Here

public class Resources {

  public String getText(String key) {
    I18nMessage message = new I18nMessage("default",key);   
    message.setBundle(new SafeResourceBundle(ResourceBundle.getBundle("messages"), true))
    return message.getMessage();
 
View Full Code Here

TOP

Related Classes of br.com.caelum.vraptor.core.SafeResourceBundle

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.