Class PropertyGetter

All Implemented Interfaces:
Serializable, Cloneable, Map<Object,Object>, Getter

public class PropertyGetter extends SerialGetter
The class implements a Getter through Properties and must be used as setup file to for refer to the application parametrization
See Also:
  • Constructor Details

    • PropertyGetter

      public PropertyGetter()
      Creates an empty basic PropertyGetter
    • PropertyGetter

      public PropertyGetter(Map<?,?> p)
      Creates a PropertyGetter starting from a map
      Parameters:
      p - The map used to create the PropertyGetter
    • PropertyGetter

      public PropertyGetter(String resource, Class<?> c) throws IOException
      Creates an empty PropertyGetter starting from a Java properties file (see Properties) and o Class object.
      Parameters:
      resource - Name of the Properties resource
      c - Specifies the caller Class; this is needed to use the correct ClassLoader to retrieve correctly the resource file
      Throws:
      IOException - In case errors occur when reading the file an IOException will raise
    • PropertyGetter

      public PropertyGetter(String resource) throws IOException
      Creates an empty PropertyGetter starting from a Java properties file (see Properties). It uses the SystemClassLoader to retrieve the resource
      Parameters:
      resource - Name of the Properties resource
      Throws:
      IOException - In case errors occur when reading the file an IOException will raise