Class GwtProperties


  • public class GwtProperties
    extends java.lang.Object
    GWT-compatible helper for dealing with Java .properties files. The format is probably not fully parsed by this code, but is suitable for simple use-cases inside Closure.
    • Method Detail

      • getProperty

        public java.lang.String getProperty​(java.lang.String key)
        Parameters:
        key - Property key to retrieve.
        Returns:
        The string value of this key.
      • propertyNames

        public java.util.Collection<java.lang.String> propertyNames()
        Returns:
        The collection of property names.
      • loadFromResource

        public static GwtProperties loadFromResource​(java.lang.String resourceName)
      • load

        public static GwtProperties load​(java.lang.String source)
        Constructs a new GwtProperties from the given source string.
        Parameters:
        source - To load from.
        Returns:
        The GwtProperties object from the source.