Class DependencyUtil
java.lang.Object
io.openems.edge.core.appmanager.dependency.DependencyUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic final UUID
getInstanceIdOfAppWhichHasComponent
(ComponentManager componentManager, String componentId) Gets the instanceId of the app which has the given Component.final UUID
getInstanceIdOfAppWhichHasComponentInternal
(ComponentManager componentManager, String componentId) Gets the instanceId of the first found app that has the given componentId in itsAppConfiguration
.
-
Method Details
-
getInstanceIdOfAppWhichHasComponent
public static final UUID getInstanceIdOfAppWhichHasComponent(ComponentManager componentManager, String componentId) Gets the instanceId of the app which has the given Component.- Parameters:
componentManager
- theComponentManager
componentId
- the ComponentId- Returns:
- the Id or null if no app has this component
-
getInstanceIdOfAppWhichHasComponentInternal
public final UUID getInstanceIdOfAppWhichHasComponentInternal(ComponentManager componentManager, String componentId) Gets the instanceId of the first found app that has the given componentId in itsAppConfiguration
.NOTE: when calling this inside an app configuration it can lead to an endless loop
- Parameters:
componentManager
- a componentManager to get the appManagercomponentId
- the component id that the app should have- Returns:
- the found instanceId or null if no app has this component
-