PlatformStatusManagerImpl

public class PlatformStatusManagerImpl implements PlatformStatusManager, OsgiBundleApplicationContextListener, BundleListener

PlatformStatusManager implementation. Acts as an listener for Blueprint events to get notified about modules being started or failing. It also exposes a method used by PlatformActivator for notifying about OSGi (not blueprint) bundle errors. It also acts as an OSGi event listener for keeping track of bundles that were started by OSGi (includes all bundles in the system). It keeps a single platform status instance, that it keeps updating.

Constructors

PlatformStatusManagerImpl

public PlatformStatusManagerImpl(List<Bundle> osgiBundles, List<Bundle> blueprintBundles)

Methods

bundleChanged

public void bundleChanged(BundleEvent bundleEvent)

getCurrentStatus

public PlatformStatus getCurrentStatus()

onOsgiApplicationEvent

public void onOsgiApplicationEvent(OsgiBundleApplicationContextEvent event)

registerBundleError

public void registerBundleError(String bundleSymbolicName, String error)

Used for registering an OSGi error. This is not part of the interface and is used only by the PlatformActivator.

Parameters:
  • bundleSymbolicName – the symbolic name of the bundle which failed to start
  • error – the actual error

setOsgiEventProxy

public void setOsgiEventProxy(OsgiEventProxy osgiEventProxy)