Difference between revisions of "Code Discussion 2008-11-03"

From MPDLMediaWiki
Jump to navigation Jump to search
Line 24: Line 24:
     }
     }
</code>
</code>
* Static helper class
* loads properties from solution-specific properties file (e.g. pubman.properties, faces.properties)
== Problem ==
== Problem ==



Revision as of 10:55, 3 November 2008

Previous topic

Previous topic 2008-10-20

PropertyReader

Current situation

   public static String getProperty(String key) throws IOException, URISyntaxException
   {
       // First check system properties
       String value = System.getProperty(key);
       if (value != null)
       {
           return value;
       }
       // Check properties file
       if (properties == null)
       {
           loadProperties();
       }
       // Get the property
       value = properties.getProperty(key);
       return value;
   }

  • Static helper class
  • loads properties from solution-specific properties file (e.g. pubman.properties, faces.properties)

Problem

Solution

Next topic

Next topic 2008-11-10