@Requires(beans=RoutesVersioningConfiguration.class) @Requires(property="micronaut.router.versioning.default-version") @Singleton public class ConfigurationDefaultVersionProvider extends java.lang.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) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
resolveDefaultVersion() |
public ConfigurationDefaultVersionProvider(RoutesVersioningConfiguration routesVersioningConfiguration)
routesVersioningConfiguration
- Routes Versioning Configuration.public java.lang.String resolveDefaultVersion()
resolveDefaultVersion
in interface DefaultVersionProvider