public class ConfigurationPropertiesResolver
extends java.lang.Object
implements java.io.Serializable
ConfigurationPropertiesResolver resolves the configuration properties for an
application like the http, https ports.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
APPLICATION_HTTP_PORT_KEY
The constant for the properties key of the http port.
|
static java.lang.String |
APPLICATION_HTTPS_PORT_KEY
The constant for the properties key of the https port.
|
static java.lang.String |
DEFAULT_CONFIGURATION_PROPERTIES_FILENAME
The constant for the default file name of the configuration properties file.
|
static int |
DEFAULT_HTTP_PORT
The constant for the default http port.
|
static int |
DEFAULT_HTTPS_PORT
The constant for the default http port.
|
| Constructor and Description |
|---|
ConfigurationPropertiesResolver()
Instantiates a new
ConfigurationPropertiesResolver with the default settings. |
ConfigurationPropertiesResolver(@NonNull java.lang.Integer defaultHttpPort,
@NonNull java.lang.Integer defaultHttpsPort,
@NonNull java.lang.String propertiesFilename)
Instantiates a new
ConfigurationPropertiesResolver. |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Properties |
loadProperties()
Try to load the configuration properties file from disk.
|
public static final java.lang.String APPLICATION_HTTP_PORT_KEY
public static final java.lang.String APPLICATION_HTTPS_PORT_KEY
public static final java.lang.String DEFAULT_CONFIGURATION_PROPERTIES_FILENAME
public static final int DEFAULT_HTTP_PORT
public static final int DEFAULT_HTTPS_PORT
public ConfigurationPropertiesResolver()
ConfigurationPropertiesResolver with the default settings.public ConfigurationPropertiesResolver(@NonNull
@NonNull java.lang.Integer defaultHttpPort,
@NonNull
@NonNull java.lang.Integer defaultHttpsPort,
@NonNull
@NonNull java.lang.String propertiesFilename)
ConfigurationPropertiesResolver.defaultHttpPort - the default http portdefaultHttpsPort - the default https portpropertiesFilename - the properties filename