示例#1
0
    def discover_service_classes(self):
        """
        Walk implementation directories and find service implementation classes.
        @todo Only works for ion packages and submodules
        """
        IonServiceRegistry.load_service_mods("ion")

        sclasses = [s for s in itersubclasses(BaseService) if not s.__subclasses__()]

        for scls in sclasses:
            self.add_servicedef_entry(scls.name, "impl", scls, append=True)

        self.classes_loaded = True
示例#2
0
文件: service.py 项目: swarbhanu/pyon
    def discover_service_classes(self):
        """
        Walk implementation directories and find service implementation classes.
        @todo Only works for ion packages and submodules
        """
        IonServiceRegistry.load_service_mods("ion")

        sclasses = [s for s in itersubclasses(BaseService) if not s.__subclasses__()]

        for scls in sclasses:
            self.add_servicedef_entry(scls.name, "impl", scls, append=True)

        self.classes_loaded = True