Changes between Version 2 and Version 3 of AccountManager
- Timestamp:
- 04/30/20 16:22:27 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AccountManager
v2 v3 30 30 * If the variable is not set, the default value "src/main/resources/accounts.db" is used. 31 31 32 This way, the default without environment variable can work when doing junit tests while also it allows you to make it work with environment variable in a more complex situation like a tomcat server. If you need to you can always override DBConnection#getDatabaseURL to return something more suited. You can also use a different database than SQLite by verriding DBConnection#getDriverName(). 32 This way, the default without environment variable can work when doing junit tests while also it allows you to make it work with environment variable in a more complex situation like a tomcat server. If you need to you can always override DBConnection#getDatabaseURL to return something more suited. You can also use a different database than SQLite by verriding DBConnection#getDriverName(). Or even write another implementation of DatabaseInterface. 33 33 34 SQLite requires database to be available in plain filesystem format (so not as part of a jar, war, etc). 35 36 37 == Mail Configuration 38 The DefaultMailer() takes the properties from the mail.properties file (see src/main/resources). This works even inside a jar. 39 40 The mail.properties file is configured to use the TUDelft mail system, and only works if your machine has a TUDelft internet address. You may have to override the standard settings if you want to use this on a non-TUDelft machine. 41 42 You can also provide a set of Properties directly to construct a DefaultMailer with non-standard settings. 43 44 45