java.lang.Object
io.helidon.dbclient.DbMapperProviderImpl
- All Implemented Interfaces:
MapperProvider
Java
ServiceLoader service to get database types mappers.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.common.mapper.spi.MapperProvider
MapperProvider.ProviderResponse, MapperProvider.Support -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFind a mapper that is capable of mapping from source to target classes.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.common.mapper.spi.MapperProvider
mapper
-
Constructor Details
-
DbMapperProviderImpl
public DbMapperProviderImpl()
-
-
Method Details
-
mapper
public MapperProvider.ProviderResponse mapper(Class<?> sourceClass, Class<?> targetClass, String qualifier) Description copied from interface:MapperProviderFind a mapper that is capable of mapping from source to target classes. Qualifiers are defined by each component using mapping. In case of clashing qualifiers, the first mapper that returnsMapperProvider.Support.SUPPORTEDwill be chosen.- Specified by:
mapperin interfaceMapperProvider- Parameters:
sourceClass- class of the sourcetargetClass- class of the targetqualifier- qualifiers of this mapping (such asconfigorhttp-headers, may be empty for default- Returns:
- a mapper that is capable of mapping (or converting) sources to targets
-