Added and fixed existing Javadoc, configured Javadoc validation
This commit is contained in:
@ -22,7 +22,7 @@ import envoy.schema.User;
|
||||
* Project: <strong>envoy-client</strong><br>
|
||||
* File: <strong>Startup.java</strong><br>
|
||||
* Created: <strong>12 Oct 2019</strong><br>
|
||||
*
|
||||
*
|
||||
* @author Leon Hofmeister
|
||||
* @author Maximilian Käfer
|
||||
* @author Kai S. K. Engelbart
|
||||
@ -32,6 +32,16 @@ public class Startup {
|
||||
|
||||
private static final Logger logger = EnvoyLog.getLogger(Startup.class.getSimpleName());
|
||||
|
||||
/**
|
||||
* Loads the application by first loading the configuration, then acquiring a
|
||||
* user name and connecting to the server. If the server cannot be reached,
|
||||
* offline mode is entered if possible. After that, a {@link ChatWindow}
|
||||
* instance is initialized and then displayed to the user. Upon application
|
||||
* exit, settings and the local database are saved.
|
||||
*
|
||||
* @param args the command line arguments may contain configuration parameters
|
||||
* and are parsed by the {@link Config} class
|
||||
*/
|
||||
public static void main(String[] args) {
|
||||
Config config = Config.getInstance();
|
||||
|
||||
@ -127,7 +137,7 @@ public class Startup {
|
||||
e.printStackTrace();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
// Save Settings and LocalDB on shutdown
|
||||
Runtime.getRuntime().addShutdownHook(new Thread(() -> {
|
||||
try {
|
||||
|
Reference in New Issue
Block a user