com.atlassian.jira.config.properties
Class PropertiesUtil

java.lang.Object
  extended by com.atlassian.jira.config.properties.PropertiesUtil

public class PropertiesUtil
extends java.lang.Object


Method Summary
static int getIntProperty(ApplicationProperties applicationProperties, java.lang.String propertyKey, int defaultValue)
          Utility method for getting parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getIntProperty

public static int getIntProperty(ApplicationProperties applicationProperties,
                                 java.lang.String propertyKey,
                                 int defaultValue)
Utility method for getting parameters.

Parses the defined application property to an int if possible. If the defined value is missing or invalid, then it returns the given defaultValue instead.

Parameters:
applicationProperties - application properties
defaultValue - The default value to use if we can't find an int for the given key.
propertyKey - property key
Returns:
the int value for the given property key, or the default value if a valid value was not found.


Copyright © 2002-2010 Atlassian. All Rights Reserved.