-class StandAloneLifecyle:
- def __init__(self, containerManager, resourcesManager):
- self._cm = containerManager
- self._rm = resourcesManager
-
- def FindOrLoadComponent(self,contName,moduleName):
- global orb
- import importlib
- builder_name = moduleName + "_SalomeSessionless"
- moduleObj = importlib.import_module(builder_name)
- result, orb = moduleObj.buildInstance(orb)
- return result
- #raise RuntimeError("Undealed situation cont = {} module = {}".format(contName,moduleName))
-
- def getContainerManager(self):
- return self._cm
-
- def getResourcesManager(self):
- return self._rm
-