Class ManifestService

All Implemented Interfaces:
CtxEventListener, ContextHandleAware, HandleAware, Ready, ReadyListener

public final class ManifestService extends AbstractService
Service that tracks the active manifest.
Version:
2023-08-21
  • Constructor Details

    • ManifestService

      public ManifestService()
  • Method Details

    • setActiveManifest

      public void setActiveManifest(ResolvedDeviceManifest deviceManifest, ResolvedNodeManifest nodeManifest)
      Called during boot to record the currently active manifest. This is called very early in the boot process so the manifest is generally available for use in most code other than core code which typically doesn't rely on the manifest anyways.
      Parameters:
      deviceManifest - the active device manifest
      nodeManifest - the active node manifest
    • getManifestId

      public String getManifestId()
      Return the id of the active device manifest.
    • getDeviceManifest

      public ResolvedDeviceManifest getDeviceManifest()
      Return the currently active ResolvedDeviceManifest for this device. This is the manifest that is used across the entire device.
    • getNodeManifest

      public ResolvedNodeManifest getNodeManifest()
      Return the currently active ResolvedNodeManifest for this node within the device.
    • getSoftwareInfo

      public DeviceSoftwareInfo getSoftwareInfo()
      Return the software info for this node.