All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.molgenis.util.i18n.PropertiesMessageSource Maven / Gradle / Ivy

package org.molgenis.util.i18n;

/**
 * If you want localization messages for a namespace to be picked up by the populator, you need to
 * create a {@link PropertiesMessageSource} bean for that namespace and add it to the context.
 */
public class PropertiesMessageSource {
  private final String namespace;

  public PropertiesMessageSource(String namespace) {
    this.namespace = namespace.trim().toLowerCase();
  }

  /** Returns the namespace of this {@link PropertiesMessageSource} */
  public String getNamespace() {
    return namespace;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy