org.cogchar.app.puma.config
Class VanillaConfigManager

java.lang.Object
  extended by org.cogchar.app.puma.config.PumaConfigManager
      extended by org.cogchar.app.puma.config.VanillaConfigManager

public class VanillaConfigManager
extends PumaConfigManager

Author:
Stu B. A mix-in encoding an optional assumption that the best "default" config-repo-client is the one derived from the current RepoSpec provided by our current mediator. As of 2012-10-15, this fetching of specs from the mediator is the crux of Cogchar PUMA boot customization.

Constructor Summary
VanillaConfigManager()
           
 
Method Summary
 void applyDefaultRepoClientAsMainConfig(PumaContextMediator mediator, org.osgi.framework.BundleContext optBundCtxForLifecycle)
          We override this method to plug in to PumaConfigManager's operations, calling applyDefaultRepoClientAsMainConfig.
protected  void applyVanillaRepoClientAsMainConfig(PumaContextMediator mediator, org.osgi.framework.BundleContext optBundCtxForLifecycle)
          1) Calls makeVanillaRepoClient.
 
Methods inherited from class org.cogchar.app.puma.config.PumaConfigManager
clearMainConfigRepoClient, clearOSGiComps, getGlobalModeMgr, getMainConfigRepoClient, getOrMakeMainConfigRepoClient, populateCommandSpace, setMainConfigRepoClient, startRepoClientLifecyle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VanillaConfigManager

public VanillaConfigManager()
Method Detail

applyDefaultRepoClientAsMainConfig

public void applyDefaultRepoClientAsMainConfig(PumaContextMediator mediator,
                                               org.osgi.framework.BundleContext optBundCtxForLifecycle)
We override this method to plug in to PumaConfigManager's operations, calling applyDefaultRepoClientAsMainConfig.

Specified by:
applyDefaultRepoClientAsMainConfig in class PumaConfigManager
Parameters:
mediator -
optBundCtxForLifecycle -

applyVanillaRepoClientAsMainConfig

protected void applyVanillaRepoClientAsMainConfig(PumaContextMediator mediator,
                                                  org.osgi.framework.BundleContext optBundCtxForLifecycle)
1) Calls makeVanillaRepoClient. 2) If OSGi bundle is present, starts lifecycles using it. Does not yet perform any cleanup on old lifecycles. TODO: Add any such necessary cleanup.

Parameters:
mediator -
optBundCtxForLifecycle - - optional (null => None) OSGi BundleContext signaling that JFlux.org/Robokind.org -compatible lifecycles should be started.


Copyright © 2010-2013. All Rights Reserved.