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