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
-
Method Summary
Modifier and TypeMethodDescriptionReturn information about the device as declared in the manifest.Return the currently activeResolvedDeviceManifest
for this device.Return the kOS version.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
(String manifestId, 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
-
Method Details
-
setActiveManifest
public void setActiveManifest(String manifestId, 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.The manifestId is the manifest listed in the kmf which may be the start of a chain of manifests. The deviceManifest is the result of processing the entire chain and resolving everything into a single usable manifest.
- Parameters:
manifestId
- manifest from the kmfdeviceManifest
- the active device manifestnodeManifest
- the active node manifest
-
getManifestId
Return the id of the active device manifest. -
getDeviceInfo
Return information about the device as declared in the manifest. This defines the shape of the device, including all possible nodes the device can contain. -
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. -
getKosVersion
Return the kOS version. -
getSoftwareInfo
Return the software info for this node.
-