io.smallrye.stork.spi.internal.ServiceRegistrarLoader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of stork-api Show documentation
Show all versions of stork-api Show documentation
Main Stork API classes. You are likely to need `smallrye-stork-core` and not this module.
The newest version!
package io.smallrye.stork.spi.internal;
import io.smallrye.stork.api.MetadataKey;
import io.smallrye.stork.api.ServiceRegistrar;
import io.smallrye.stork.api.config.ConfigWithType;
import io.smallrye.stork.spi.ElementWithType;
import io.smallrye.stork.spi.StorkInfrastructure;
/**
* Used by stork internals to generate service loader for ServiceRegistrarProvider.
*/
public interface ServiceRegistrarLoader & MetadataKey> extends ElementWithType {
/**
* Creates a new {@link ServiceRegistrar} instance.
*
* @param config the service registrar configuration, must not be {@code null}
* @param serviceName
* @param storkInfrastructure the stork infrastructure, must not be {@code null}
* @return the new {@link ServiceRegistrar}
*/
ServiceRegistrar createServiceRegistrar(ConfigWithType config,
String serviceName, StorkInfrastructure storkInfrastructure);
}