Package io.micronaut.web.router.version
Class ConfigurationDefaultVersionProvider
java.lang.Object
io.micronaut.web.router.version.ConfigurationDefaultVersionProvider
- All Implemented Interfaces:
DefaultVersionProvider
@Requires(beans=RoutesVersioningConfiguration.class) @Requires(property="micronaut.router.versioning.default-version")
@Singleton
public class ConfigurationDefaultVersionProvider
extends Object
implements DefaultVersionProvider
Implementation of
DefaultVersionProvider
which uses configuration.
If value micronaut.router.versioning.default-version is present, this bean is loaded and returns that value.- Since:
- 1.1.0
- Author:
- Sergio del Amo
-
Constructor Summary
ConstructorDescriptionConfigurationDefaultVersionProvider
(RoutesVersioningConfiguration routesVersioningConfiguration) -
Method Summary
-
Constructor Details
-
ConfigurationDefaultVersionProvider
public ConfigurationDefaultVersionProvider(RoutesVersioningConfiguration routesVersioningConfiguration) - Parameters:
routesVersioningConfiguration
- Routes Versioning Configuration.
-
-
Method Details
-
resolveDefaultVersion
- Specified by:
resolveDefaultVersion
in interfaceDefaultVersionProvider
- Returns:
- Resolves a default Version
-