예제 #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.")
예제 #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.")
예제 #3
0
 def __init__(self):
     self._extension_mgr = ExtensionManager()
     self._package_mgr = PackageManager()
예제 #4
0
 def __init__(self):
     self._extension_mgr = ExtensionManager()
     self._package_mgr = PackageManager()