- java.lang.Object
-
- io.helidon.dbclient.common.DbClientMapperProvider
-
- All Implemented Interfaces:
MapperProvider
public class DbClientMapperProvider extends Object implements MapperProvider
Java Service loader service to get database types mappers.
-
-
Constructor Summary
Constructors Constructor Description DbClientMapperProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <SOURCE,TARGET>
Optional<Mapper<?,?>>mapper(Class<SOURCE> sourceClass, Class<TARGET> targetClass)
Find 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, wait
-
Methods inherited from interface io.helidon.common.mapper.spi.MapperProvider
mapper
-
-
-
-
Method Detail
-
mapper
public <SOURCE,TARGET> Optional<Mapper<?,?>> mapper(Class<SOURCE> sourceClass, Class<TARGET> targetClass)
Description copied from interface:MapperProvider
Find a mapper that is capable of mapping from source to target classes.- Specified by:
mapper
in interfaceMapperProvider
- Type Parameters:
SOURCE
- type of the sourceTARGET
- type of the target- Parameters:
sourceClass
- class of the sourcetargetClass
- class of the target- Returns:
- a mapper that is capable of mapping (or converting) sources to targets
-
-