Changes between Version 2 and Version 3 of Ticket #529, comment 23
- Timestamp:
- Apr 7, 2014, 4:09:55 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #529, comment 23
v2 v3 4 4 Possible remedies: 5 5 6 1. A `RuntimeException()` can be thrown by public method `void start()` in class `LabEnvService`, without upsetting the `ServiceControllerAction` Interface. By also letting private method `void fetchConfiguration()` in class `LabEnvironmentConfiguration` forward the contents of a ca tchedexception as a `RuntimeException`, one doesn't have to declare that a number of methods throw exceptions.6 1. A `RuntimeException()` can be thrown by public method `void start()` in class `LabEnvService`, without upsetting the `ServiceControllerAction` Interface. By also letting private method `void fetchConfiguration()` in class `LabEnvironmentConfiguration` forward the contents of a caught exception as a `RuntimeException`, one doesn't have to declare that a number of methods throw exceptions. 7 7 2. A new public method `void reloadLabEnvironmentConfiguration()` could be added to singleton class `LabEnvironment`, for forcing a reload of the configuration file. Class `LabEnvService` could then be updated in public method `void start()` to call `reloadLabEnvironmentConfiguration()`, to ensure that the configuration file is read, when the service is started.