Merge lp:~cszikszoy/do/newdo-service-loading into lp:do/rewrite
Proposed by
Chris S.
Status: | Work in progress |
---|---|
Proposed branch: | lp:~cszikszoy/do/newdo-service-loading |
Merge into: | lp:do/rewrite |
Diff against target: |
354 lines (+225/-32) 7 files modified
src/Backends/DBus/DBus.csproj (+3/-0) src/Core/Base/Base.csproj (+2/-0) src/Core/Base/src/Addins.cs (+130/-0) src/Core/Base/src/ServiceManager.cs (+73/-31) src/Core/Base/src/UniverseManager.cs (+1/-1) src/Core/Services/Resources/Do.Services.addin.xml (+9/-0) src/Core/Services/Services.csproj (+7/-0) |
To merge this branch: | bzr merge lp:~cszikszoy/do/newdo-service-loading |
Related bugs: | |
Related blueprints: |
Base service loading
(Essential)
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Alex Launi | Needs Fixing | ||
Review via email: mp+33493@code.launchpad.net |
To post a comment you must log in.
1.) Please comment all classes to say overall what the class is for. Give a little design intro as to the reason for the class. If you think it's abundantly obvious make it short, but have a little something Initialize (pluginsPath); Registry. Rebuild (monitor); Shutdown (); Initialize (pluginsPath); Registry. Update (monitor);
1a.) What's the point of the Addins class? What is in there that should not just be in ServiceManager? If you think that the Actual Mono.Addins stuff should be its own class (which I think I agree with) then try and take the AddinManager calls out of Services and fully abstract it out.
2.)
+ try {
+ AddinManager.
+ } catch (Exception e) {
+ AddinManager.
+ AddinManager.
+ AddinManager.
+ }
+
+ AddinManager.
Why wouldn't the 2nd call to AddinManager throw the same exception the first one did? Why do you Rebuild, shutdown, and then initialize? Is it necessary to Update after the Rebuild, Shutdown, Init cycle? The Update seems needless. If there's a good reason for this please put it into a comment so that this is clearer.
3.) Why does the DBus csproj need a Mono.Addins reference?
4.) Use Hyena.Log class for logging.