Package io.smallrye.stork.spi.internal
Interface ServiceRegistrarLoader<MetadataKeyType extends Enum<MetadataKeyType> & MetadataKey>
- All Superinterfaces:
ElementWithType
public interface ServiceRegistrarLoader<MetadataKeyType extends Enum<MetadataKeyType> & MetadataKey>
extends ElementWithType
Used by stork internals to generate service loader for ServiceRegistrarProvider.
-
Method Summary
Modifier and TypeMethodDescriptioncreateServiceRegistrar(ConfigWithType config, String serviceName, StorkInfrastructure storkInfrastructure) Creates a newServiceRegistrarinstance.Methods inherited from interface io.smallrye.stork.spi.ElementWithType
type
-
Method Details
-
createServiceRegistrar
ServiceRegistrar<MetadataKeyType> createServiceRegistrar(ConfigWithType config, String serviceName, StorkInfrastructure storkInfrastructure) Creates a newServiceRegistrarinstance.- Parameters:
config- the service registrar configuration, must not benullserviceName-storkInfrastructure- the stork infrastructure, must not benull- Returns:
- the new
ServiceRegistrar
-