@InterfaceAudience.Public @InterfaceStability.Evolving public class ApplicationProperties extends Object implements Serializable
PropertyChangeListeners using
VarraProperties.registerPropertyChangeListener(PropertyChangeListener, String...) and
VarraProperties.unregisterPropertyChangeListener(PropertyChangeListener)| Constructor and Description |
|---|
ApplicationProperties(String propertyFileName)
Instantiates a new application properties with the parameters given.
|
ApplicationProperties(String propertyFileName,
boolean isMonitoringEnabled)
Instantiates a new application properties with the parameters given.
|
ApplicationProperties(String propertyFileName,
boolean isMonitoringEnabled,
int interval)
Instantiates a new application properties with the parameters given.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds the property change listener.
|
boolean |
equals(Object obj) |
Integer |
getInterval()
Gets the properties file monitor interval.
|
Properties |
getProperties()
Gets the properties.
|
File |
getPropertyFile()
Gets the property file.
|
String |
getPropertyFileName()
Gets the property file name.
|
int |
hashCode() |
boolean |
isMonitoringEnabled()
Checks if is monitoring enabled.
|
boolean |
isValid(String propertyFileName)
Checks if is valid application properties.
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes the property change listener.
|
String |
toString() |
public ApplicationProperties(String propertyFileName) throws PropertyFileLoaderException
propertyFileName - the property file namePropertyFileLoaderException - the property file loader exceptionpublic ApplicationProperties(String propertyFileName, boolean isMonitoringEnabled) throws PropertyFileLoaderException
propertyFileName - the property file nameisMonitoringEnabled - the is monitoring enabledPropertyFileLoaderException - the property file loader exceptionpublic ApplicationProperties(String propertyFileName, boolean isMonitoringEnabled, int interval) throws PropertyFileLoaderException
propertyFileName - the property file nameisMonitoringEnabled - the is monitoring enabledinterval - the intervalPropertyFileLoaderException - the property file loader exceptionpublic String getPropertyFileName()
public boolean isMonitoringEnabled()
public Integer getInterval()
isMonitoringEnabled() enabled (i.e. true).@InterfaceAudience.LimitedPrivate(value="props") @InterfaceStability.Evolving public boolean isValid(String propertyFileName)
propertyFileName - the property file namepublic File getPropertyFile()
public Properties getProperties()
public void addPropertyChangeListener(PropertyChangeListener listener)
listener - the listenerpublic void removePropertyChangeListener(PropertyChangeListener listener)
listener - the listenerCopyright © 2016 utils4j. All Rights Reserved.