Package io.micronaut.http.converters
Class HttpConverterRegistrar
java.lang.Object
io.micronaut.http.converters.HttpConverterRegistrar
- All Implemented Interfaces:
TypeConverterRegistrar
Converter registrar for HTTP classes.
- Since:
- 2.0
- Author:
- graemerocher
-
Constructor Summary
ModifierConstructorDescriptionprotected
HttpConverterRegistrar
(BeanProvider<ResourceResolver> resourceResolver) Default constructor.protected
HttpConverterRegistrar
(Provider<ResourceResolver> resourceResolver) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionvoid
register
(MutableConversionService conversionService) Interface for registrars ofTypeConverter
instances.
-
Constructor Details
-
HttpConverterRegistrar
Default constructor.- Parameters:
resourceResolver
- The resource resolver
-
HttpConverterRegistrar
@Deprecated(forRemoval=true) protected HttpConverterRegistrar(Provider<ResourceResolver> resourceResolver) Deprecated, for removal: This API element is subject to removal in a future version.Replaced byHttpConverterRegistrar(BeanProvider)
.The constructor.- Parameters:
resourceResolver
- The resource resolver
-
-
Method Details
-
register
Description copied from interface:TypeConverterRegistrar
Interface for registrars ofTypeConverter
instances.- Specified by:
register
in interfaceTypeConverterRegistrar
- Parameters:
conversionService
- TheConversionService
-
HttpConverterRegistrar(BeanProvider)
.