Changes between Version 2 and Version 3 of Ticket #529, comment 23


Ignore:
Timestamp:
Apr 7, 2014, 4:09:55 PM (10 years ago)
Author:
olle

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #529, comment 23

    v2 v3  
    44Possible remedies:
    55
    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 catched exception 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.
    77 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.