def get_endpoint_discovery_provider_list_old(): provider_list = [] for sc in EndpointBase.__subclasses__(): if sc.__name__ is not None: print sc.__name__ provider_list.append(sc.__name__) return provider_list
def get_provider_instance(provider_class): print EndpointBase.__subclasses__() for sc in EndpointBase.__subclasses__(): if sc.__name__ == provider_class: return sc()