Class PropertiesData

java.lang.Object
net.vincent.communidirect.PropertiesData

public class PropertiesData extends Object
Handles loading, saving, and creating the application's configuration file (communidirect.properties).

Currently the only persisted setting is the server port:

 port=2556
 
  • Constructor Details

    • PropertiesData

      public PropertiesData(CommuniDirect communiDirect)
      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.