Skip to content

Commit

Permalink
Merge pull request #204 from VWoeltjen/mct199quickFix
Browse files Browse the repository at this point in the history
[Launcher] Add dependency to default component provider
  • Loading branch information
harleigh committed Sep 27, 2013
2 parents 6b39d28 + 51b20e1 commit f2cdf00
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@
import gov.nasa.arc.mct.context.GlobalContext;
import gov.nasa.arc.mct.gui.impl.MenuExtensionManager;
import gov.nasa.arc.mct.gui.impl.StatusAreaWidgetRegistryImpl;
import gov.nasa.arc.mct.osgi.platform.OSGIRuntimeImpl;
import gov.nasa.arc.mct.osgi.platform.OSGIRuntime;
import gov.nasa.arc.mct.platform.spi.PersistenceProvider;
import gov.nasa.arc.mct.osgi.platform.OSGIRuntimeImpl;
import gov.nasa.arc.mct.platform.spi.Platform;
import gov.nasa.arc.mct.platform.spi.PlatformAccess;
import gov.nasa.arc.mct.policymgr.PolicyManagerImpl;
Expand Down Expand Up @@ -63,11 +62,12 @@ public class LaunchMCTService {
private boolean haveInitialized = false;
private Timer t;

public void bind(PersistenceProvider provider) {
public void bind(Object provider) {
// do nothing as this signals launch can proceed
// (used to declare dependencies to persistence, default component provider)
}

public void unbind(PersistenceProvider provider) {
public void unbind(Object provider) {

}

Expand Down
1 change: 1 addition & 0 deletions platform/src/main/resources/OSGI-INF/service.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<scr:component name="gov.nasa.arc.mct.platform.LaunchMCTService">
<implementation class="gov.nasa.arc.mct.platform.LaunchMCTService" />
<reference bind="bind" cardinality="1..1" interface="gov.nasa.arc.mct.platform.spi.PersistenceProvider" name="PersistenceService" policy="dynamic" unbind="unbind"/>
<reference bind="bind" cardinality="1..n" interface="gov.nasa.arc.mct.platform.spi.DefaultComponentProvider" name="DefaultComponentProvider" policy="dynamic" unbind="unbind"/>
<reference bind="componentProviderAdded" cardinality="0..n" interface="gov.nasa.arc.mct.services.component.ComponentProvider" name="ComponentProvider" policy="dynamic" unbind="componentProviderRemoved"/>
</scr:component>
<scr:component name="gov.nasa.arc.mct.platform.spi.RoleAccess">
Expand Down

0 comments on commit f2cdf00

Please sign in to comment.