Class PropertiesData
java.lang.Object
net.vincent.communidirect.PropertiesData
Handles loading, saving, and creating the application's
configuration file (
communidirect.properties).
Currently the only persisted setting is the server port:
port=2556
-
Constructor Summary
ConstructorsConstructorDescriptionPropertiesData(CommuniDirect communiDirect) Creates a new instance linked to the given application. -
Method Summary
-
Constructor Details
-
PropertiesData
Creates a new instance linked to the given application.- Parameters:
communiDirect- the main application instance
-
-
Method Details
-
load
public void load()Loads configuration from the properties file. If the file does not exist a new one is created with defaults. -
save
public void save()Saves the current port to the properties file.
-