Class MicronautConversionService
java.lang.Object
io.micronaut.spring.context.convert.MicronautConversionService
- All Implemented Interfaces:
MicronautContextInternal,org.springframework.core.convert.ConversionService
@Singleton
@Named("conversionService")
public class MicronautConversionService
extends Object
implements org.springframework.core.convert.ConversionService, MicronautContextInternal
ConversionService adapter.
- Since:
- 1.0
- Author:
- graemerocher
-
Constructor Summary
ConstructorsConstructorDescriptionMicronautConversionService(io.micronaut.core.convert.ConversionService conversionService) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleancanConvert(Class<?> sourceType, Class<?> targetType) booleancanConvert(org.springframework.core.convert.TypeDescriptor sourceType, org.springframework.core.convert.TypeDescriptor targetType) <T> Tconvert(Object source, org.springframework.core.convert.TypeDescriptor sourceType, org.springframework.core.convert.TypeDescriptor targetType) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.core.convert.ConversionService
convert
-
Constructor Details
-
MicronautConversionService
public MicronautConversionService(io.micronaut.core.convert.ConversionService conversionService) Default constructor.- Parameters:
conversionService- The target service
-
-
Method Details
-
canConvert
- Specified by:
canConvertin interfaceorg.springframework.core.convert.ConversionService
-
canConvert
public boolean canConvert(org.springframework.core.convert.TypeDescriptor sourceType, org.springframework.core.convert.TypeDescriptor targetType) - Specified by:
canConvertin interfaceorg.springframework.core.convert.ConversionService
-
convert
- Specified by:
convertin interfaceorg.springframework.core.convert.ConversionService
-
convert
public Object convert(Object source, org.springframework.core.convert.TypeDescriptor sourceType, org.springframework.core.convert.TypeDescriptor targetType) - Specified by:
convertin interfaceorg.springframework.core.convert.ConversionService
-