Class ManifestService
java.lang.Object
com.tccc.kos.commons.util.ready.ReadyBean
com.tccc.kos.commons.core.service.AbstractService
com.tccc.kos.core.service.manifest.ManifestService
- All Implemented Interfaces:
CtxEventListener
,ContextHandleAware
,HandleAware
,Ready
,ReadyListener
Service that tracks the active manifest.
- Version:
- 2023-08-21
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the currently activeResolvedDeviceManifest
for this device.Return the id of the active device manifest.Return the currently activeResolvedNodeManifest
for this node within the device.Return the software info for this node.void
setActiveManifest
(ResolvedDeviceManifest deviceManifest, ResolvedNodeManifest nodeManifest) Called during boot to record the currently active manifest.Methods inherited from class com.tccc.kos.commons.core.service.AbstractService
getHandle, getHandlePrefix
Methods inherited from class com.tccc.kos.commons.util.ready.ReadyBean
getReady, onBeanReady, onDependenciesReady
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.tccc.kos.commons.core.context.CtxEventListener
onCtxAutowiringCompleted, onCtxDestroyed, onCtxPhaseCompleted
Methods inherited from interface com.tccc.kos.commons.core.service.handle.HandleAware
addHandleChild, getName, getPath
Methods inherited from interface com.tccc.kos.commons.util.ready.ReadyListener
onDependenciesGroupReady
-
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 manifestnodeManifest
- the active node manifest
-
getManifestId
Return the id of the active device manifest. -
getDeviceManifest
Return the currently activeResolvedDeviceManifest
for this device. This is the manifest that is used across the entire device. -
getNodeManifest
Return the currently activeResolvedNodeManifest
for this node within the device. -
getSoftwareInfo
Return the software info for this node.
-