Changes between Version 4 and Version 5 of GROUP_PLUGINS_R0
- Timestamp:
- 03/20/09 13:16:27 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TabularUnified GROUP_PLUGINS_R0
v4 v5 43 43 44 44 = Design = 45 The org.sophie2.core.modularity module will be expanded by actually implementing the TrueModuleRegistry and a FileEntryManager. The TrueModuleRegistry will contain a list of the modules started by Felix. Each module will register itself in this list at startup - this will be implemented in the SophieModule class. This class will also provide the abstract methods isConfigurable() and configure() that can be implemented by each module that has some configuration. Each plugin does the configuration on its own and decides how to provide it. The FileEntryManager will contain methods for getting readable and writable resources (file entries). The PluginAboutPallete will be changed so that it takes the current ModuleRegistry as a source (not the Fake one as it was until now). The ModuleRegistry class get() method will return the appropriate registry. The following class diagrams reflect the changes that will be made to the core.modularity module. 45 The [source:/trunk/sophie2-platform/modules/org.sophie2.core.modularity/src/main/java/org/sophie2/core/modularity org.sophie2.core.modularity] module will be expanded by actually implementing the [source:/trunk/sophie2-platform/modules/org.sophie2.core.modularity/src/main/java/org/sophie2/core/modularity/TrueModuleRegistry TrueModuleRegistry] and a [source:/trunk/sophie2-platform/modules/org.sophie2.core.modularity/src/main/java/org/sophie2/core/modularity/FileEntryManager FileEntryManager]. 46 The TrueModuleRegistry will contain a list of the modules started by Felix. Each module will register itself in this list at startup - this will be implemented in the SophieModule class. This class will also provide the abstract methods isConfigurable() and configure() that can be implemented by each module that has some configuration. Each plugin does the configuration on its own and decides how to provide it. 47 The FileEntryManager will contain methods for getting readable and writable resources (file entries). The PluginAboutPallete will be changed so that it takes the current ModuleRegistry as a source (not the Fake one as it was until now). The ModuleRegistry class get() method will return the appropriate registry. The following class diagram reflects the changes that will be made to the core.modularity module: 46 48 47 ^Diagrams should go here. 49 [[Image(source:/trunk/sophie2-platform/doc/uml-design-diagrams/core.modularity-FileEntryManager.png)]] 48 50 49 Two unit tests will be created: TrueModuleRegistryTest and FileEntryManagerTest. 51 Two unit tests will be created: [source:/trunk/sophie2-platform/modules/org.sophie2.core.modularity/src/test/java/org/sophie2/core/modularity/TrueModuleRegistryTest TrueModuleRegistryTest] and [source:/trunk/sophie2-platform/modules/org.sophie2.core.modularity/src/test/java/org/sophie2/core/modularity/FileEntryManagerTest FileEntryManagerTest]. 52 53 Code using the Class.getResource() method will be refactored to use the FileEntryManager. 50 54 51 55 = Implementation = 52 ^Describe and link the implementation results here (from the wiki or the repository).56 Done according to the design. Changesets:[[BR]] [changeset:1781], [changeset:1792], [changeset:1794], [changeset:1800], [changeset:1801], [changeset:1802], [changeset:1904], [changeset:1905], [changeset:1906]. 53 57 54 58 = Testing =