public class DevelopmentProperties extends Object
Constructor and Description |
---|
DevelopmentProperties(File configPath)
Creates and initializes the development properties.
|
Modifier and Type | Method and Description |
---|---|
String |
getMailingTestAddress()
Returns the test email address.
|
String |
getProperty(String key)
Returns the property value for the key as String.
|
boolean |
getProperty(String key,
boolean fallback)
Returns the property for the key as boolean.
|
int |
getProperty(String key,
int fallback)
Returns the property for the key as integer.
|
long |
getProperty(String key,
long fallback)
Returns the property for the key as long.
|
String |
getProperty(String key,
String fallback)
Returns the property for the key as string.
|
boolean |
isDebugRestApi() |
boolean |
isDevelopement() |
boolean |
isMailingTestMode()
Returns whether the mailing test mode is enabled.
|
public DevelopmentProperties(File configPath)
ConfigurationInitializationException
will be thrown if the initialization failed.configPath
- path to the configuration directorypublic String getMailingTestAddress()
isMailingTestMode()
returns true.public String getProperty(String key)
key
- the keypublic boolean getProperty(String key, boolean fallback)
key
- the keyfallback
- the fallback to return if there is no property for the keypublic int getProperty(String key, int fallback)
key
- the keyfallback
- the fallback to return if there is no property for the keypublic long getProperty(String key, long fallback)
key
- the keyfallback
- the fallback to return if there is no property for the keypublic String getProperty(String key, String fallback)
key
- the keyfallback
- the fallback to return if there is no property for the keypublic boolean isDebugRestApi()
public boolean isDevelopement()
public boolean isMailingTestMode()
Copyright © 2019 Communote team. All rights reserved.