Ejemplo n.º 1
0
class ExtensionEngine(object):
    """
    Responsible for managing extension packages.
    """
    def __init__(self):
        self._extension_mgr = ExtensionManager()
        self._package_mgr = PackageManager()

    def start(self, ctx):
        logger.debug("Starting extension engine...")
        self._package_mgr.find_packages()
        self._extension_mgr.load_extensions()
        self._extension_mgr.start_extensions(ctx)
        logger.debug("Extension engine started.")

    def stop(self, ctx):
        logger.debug("Stopping extension engine...")
        self._extension_mgr.stop_extensions(ctx)
        logger.debug("Extension engine stopped.")
Ejemplo n.º 2
0
class ExtensionEngine(object):
    """
    Responsible for managing extension packages.
    """
    def __init__(self):
        self._extension_mgr = ExtensionManager()
        self._package_mgr = PackageManager()

    def start(self, ctx):
        logger.debug("Starting extension engine...")
        self._package_mgr.find_packages()
        self._extension_mgr.load_extensions()
        self._extension_mgr.start_extensions(ctx)
        logger.debug("Extension engine started.")

    def stop(self, ctx):
        logger.debug("Stopping extension engine...")
        self._extension_mgr.stop_extensions(ctx)
        logger.debug("Extension engine stopped.")
Ejemplo n.º 3
0
 def __init__(self):
     self._extension_mgr = ExtensionManager()
     self._package_mgr = PackageManager()
Ejemplo n.º 4
0
 def __init__(self):
     self._extension_mgr = ExtensionManager()
     self._package_mgr = PackageManager()