Steve Swinsburg created DS-1385:
-----------------------------------

             Summary: add method to getProperty as String with default value
                 Key: DS-1385
                 URL: https://jira.duraspace.org/browse/DS-1385
             Project: DSpace
          Issue Type: New Feature
          Components: DSpace API
            Reporter: Steve Swinsburg


ConfigurationManager has the following getProperty methods

static boolean  getBooleanProperty(String property) 
static boolean  getBooleanProperty(String property, boolean defaultValue) 
static boolean  getBooleanProperty(String module, String property) 
static boolean  getBooleanProperty(String module, String property, boolean 
defaultValue) 

static int      getIntProperty(String property) 
static int      getIntProperty(String property, int defaultValue) 
static int      getIntProperty(String module, String property) 
static int      getIntProperty(String module, String property, int 
defaultValue) 

static long     getLongProperty(String property) 
static long     getLongProperty(String property, int defaultValue) 
static long     getLongProperty(String module, String property) 
static long     getLongProperty(String module, String property, int 
defaultValue) 

but for Strings it only has:
static String   getProperty(String property) 
static String   getProperty(String module, String property) 

that is, no method to get a property with a default value.

For completeness, the following two should be added:
static String   getProperty(String property, int defaultValue) 
static String   getProperty(String module, String property, String 
defaultValue) 


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to