Interface ServiceDiscoveryProvider<T>

Type Parameters:
T - the configuration type (class generated from the ServiceDiscoveryAttribute annotations).

public interface ServiceDiscoveryProvider<T>
A service discovery provider allowing to create instances of service discovery.

Implementation should use the ServiceDiscoveryAttribute to define attributes.

  • Method Details

    • createServiceDiscovery

      ServiceDiscovery createServiceDiscovery(T config, String serviceName, ServiceConfig serviceConfig, StorkInfrastructure storkInfrastructure)
      Creates a new instance of ServiceDiscovery.
      Parameters:
      config - the configuration, must not be null
      serviceName - the service name, must not be null, or blank.
      serviceConfig - the service config, must not be null
      storkInfrastructure - the stork infrastructure, must not be null
      Returns:
      the service discovery instance