def _service_offers_default(self): """ Trait initializer. """ engine_service_offer = ServiceOffer( protocol='mayavi.core.engine.Engine', factory=PKG + '.envisage_engine.EnvisageEngine') script_service_offer = ServiceOffer( protocol='mayavi.plugins.script.Script', factory=PKG + '.script.Script') return [engine_service_offer, script_service_offer]
def _my_service_offers_default(self): """ Trait initializer. """ preferences_manager_service_offer = ServiceOffer( protocol='apptools.preferences.ui.preferences_manager' '.PreferencesManager', factory=self._create_preferences_manager_service) workbench_service_offer = ServiceOffer( protocol='envisage.ui.workbench.workbench.Workbench', factory=self._create_workbench_service) return [preferences_manager_service_offer, workbench_service_offer]
def _service_offers_default(self): """ Trait initializer. """ ibvpy_service_offer = ServiceOffer( protocol='ibvpy.plugins.ibv_model_service.IBVModelService', factory='ibvpy.plugins.ibv_model_service.IBVModelService') return [ibvpy_service_offer]
def _service_offers_default(self): evt_mgr = self.evt_mgr # Ensure evt_mgr is created evt_mgr_service_offer = ServiceOffer( protocol=EventManager, factory=lambda: evt_mgr, ) return [evt_mgr_service_offer]
def _service_offers_default(self): """ Trait initializer. """ explorer_service_offer = ServiceOffer( protocol='explorer_app.Explorer3D', factory='explorer_app.Explorer3D') return [explorer_service_offer]
def _service_offers_default(self): """ Our service contributions. """ model_service = ServiceOffer(protocol=IPROJECT_MODEL, factory=self._create_model_service) ui_service = ServiceOffer(protocol=IPROJECT_UI, factory=self._create_ui_service) # FIXME: Eventually we will register the services here intead # of in the plugin's start() method. #return [model_service, ui_service] return []
def _service_offers_default(self): """ Trait initializer. """ sdomain_service_offer = ServiceOffer( protocol='ibvpy.plugins.sdomain_service.SDomainService', factory='ibvpy.plugins.sdomain_service.SDomainService') return [sdomain_service_offer]
def _my_service_offers_default(self): preferences_dialog_service_offer = ServiceOffer( protocol="envisage.ui.tasks.preferences_dialog.PreferencesDialog", factory=self._create_preferences_dialog_service, ) return [preferences_dialog_service_offer]
def _service_offers_default(self): """ Trait initializer. """ rtrace_service_service_offer = ServiceOffer( protocol='ibvpy.plugins.rtrace_service.RTraceService', factory=self._create_rtrace_service ) return [rtrace_service_service_offer]
def _service_offers_default(self): ipython_kernel_service_offer = ServiceOffer( protocol=IPYTHON_KERNEL_PROTOCOL, factory=self._create_kernel, ) return [ipython_kernel_service_offer]
def _service_offers_default(self): from encore.events.api import BaseEventManager, get_event_manager evt_mgr_service_offer = ServiceOffer( protocol=BaseEventManager, factory=get_event_manager, ) return [evt_mgr_service_offer]
def _service_offers_default(self): """ Trait initializer. """ tstepper_service_offer = ServiceOffer( protocol='ibvpy.plugins.tstepper_service.TStepperService', factory='ibvpy.plugins.tstepper_service.TStepperService') return [tstepper_service_offer]
def _service_offers_default(self): """ Trait initializer. """ worker_service_offer = ServiceOffer( protocol = 'user_mayavi.Worker', factory = 'user_mayavi.Worker' ) return [worker_service_offer]
def _service_offers_default(self): """ Trait initializer. """ ibvpy_service_offer = ServiceOffer( protocol='ibvpy.plugins.tloop_service.TLoopService', factory='ibvpy.plugins.tloop_service.TLoopService' ) return [ibvpy_service_offer]
def _service_offers_default(self): """ Trait initializer. """ cfile_service_offer = ServiceOffer( protocol = 'cviewer.plugins.cff2.cfile.CFile', factory = 'cviewer.plugins.cff2.cfile.CFile' ) return [cfile_service_offer]
def _service_offers_default(self): """ Trait initializer. """ lorenz_service_offer = ServiceOffer( protocol='acme.lorenz.lorenz.Lorenz', factory='acme.lorenz.lorenz.Lorenz') return [lorenz_service_offer]
def _service_offers_default(self): a_service_offer = ServiceOffer( protocol=IJunk, factory=self._create_junk_service, ) return [a_service_offer]
def _service_offers_default(self): """ Trait initializer. """ scene_manager_service_offer = ServiceOffer( protocol=PKG + '.i_scene_manager.ISceneManager', factory=PKG + '.scene_manager.SceneManager', ) return [scene_manager_service_offer]
def _service_offers_default(self): """ Trait initializer. """ service_offers = [ ServiceOffer(protocol=IMyService, factory=self._my_service_factory) ] return service_offers
def _service_offers_default(self): """ Trait initializer. """ code_browser_class = PKG + '.code_browser.api.CodeBrowser' code_browser_service_offer = ServiceOffer(protocol=code_browser_class, factory=code_browser_class, scope='application') return [code_browser_service_offer]
def _service_offers_default(self): """ Trait initializer. """ log.debug("in _service_offers_default") offer1 = ServiceOffer( protocol= 'omnivore.file_type.i_file_recognizer.IFileRecognizerDriver', factory=self._create_file_recognizer_driver_service) return [offer1]
def _service_offers_default(self): """ Trait initializer. """ # Register the protocol as a string containing the actual module path # (do not use a module path that goes via an 'api.py' file as this does # not match what Python thinks the module is!). This allows the service # to be looked up by passing either the exact same string, or the # actual protocol object itself. motd_service_offer = ServiceOffer(protocol='motd.model.i_motd.IMOTD', factory=self._create_motd) return [motd_service_offer]
def _service_offers_default(self): """ Trait initializer. """ # When you register a service offer it is best to specify the protocol # a string name (rather than importing the protocol right now). This # allows the protocol to be lazily loaded. Also, don't specify the # protocol as coming from an 'api.py' file as this is not the actual # module name known to Python. motd_service_offer = ServiceOffer(protocol='acme.motd.i_motd.IMOTD', factory=self._create_motd_service) return [motd_service_offer]
def _service_offers_default(self): """ Trait initializer. """ # Register the protocol as a string containing the actual module path # and *not* a module path that goes via an 'api.py' file as this does # not match what Python thinks the module is! This allows the service # to be looked up by passing either the exact same string, or the # actual protocol object itself (the latter is the preferred way of # doing it!). motd_service_offer = ServiceOffer(protocol='acme.motd.i_motd.IMOTD', factory=self._create_motd_service) return [motd_service_offer]
def _service_offers_default(self): """Method that imports all subclasses returned by `get_service_offer_factories` as ServiceOffer objects using their associated Interface protocols """ service_offers_factories = self.get_service_offer_factories() service_offers = [] for protocol, factories in service_offers_factories: service_offers += [ ServiceOffer(protocol=protocol, factory=factory) for factory in factories ] return service_offers
def _service_offers_default(self): factory_registry_offer = ServiceOffer( protocol=IFactoryRegistry, factory=self._create_factory_registry, ) return [factory_registry_offer]