@Requires(beans=RoutesVersioningConfiguration.class) @Requires(property="micronaut.router.versioning.default-version") @Singleton public class ConfigurationDefaultVersionProvider extends Object implements DefaultVersionProvider
DefaultVersionProvider
which uses configuration.
If value micronaut.router.versioning.default-version is present, this bean is loaded and returns that value.Constructor and Description |
---|
ConfigurationDefaultVersionProvider(RoutesVersioningConfiguration routesVersioningConfiguration) |
public ConfigurationDefaultVersionProvider(RoutesVersioningConfiguration routesVersioningConfiguration)
routesVersioningConfiguration
- Routes Versioning Configuration.public String resolveDefaultVersion()
resolveDefaultVersion
in interface DefaultVersionProvider