예제 #1
0
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
예제 #2
0
def get_provider_instance(provider_class):
    print EndpointBase.__subclasses__()
    for sc in EndpointBase.__subclasses__():
        if sc.__name__ == provider_class:
            return sc()