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 ServiceDiscoveryAttribute to define attributes.
-
Method Summary
Modifier and TypeMethodDescriptioncreateServiceDiscovery(T config, String serviceName, ServiceConfig serviceConfig, StorkInfrastructure storkInfrastructure) Creates a new instance ofServiceDiscovery.
-
Method Details
-
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
-