Package io.smallrye.stork.spi
Interface ServiceDiscoveryProvider<T>
-
- Type Parameters:
T- the configuration type (class generated from theServiceDiscoveryAttributeannotations).
public interface ServiceDiscoveryProvider<T>A service discovery provider allowing to create instances of service discovery.Implementation should use the
ServiceDiscoveryAttributeto define attributes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ServiceDiscoverycreateServiceDiscovery(T config, String serviceName, ServiceConfig serviceConfig, StorkInfrastructure storkInfrastructure)Creates a new instance ofServiceDiscovery.
-
-
-
Method Detail
-
createServiceDiscovery
ServiceDiscovery createServiceDiscovery(T config, String serviceName, ServiceConfig serviceConfig, StorkInfrastructure storkInfrastructure)
Creates a new instance ofServiceDiscovery.- Parameters:
config- the configuration, must not benullserviceName- the service name, must not benull, or blank.serviceConfig- the service config, must not benullstorkInfrastructure- the stork infrastructure, must not benull- Returns:
- the service discovery instance
-
-