public class MapperFactory extends Object
Modifier and Type | Method and Description |
---|---|
static MapperFactory |
getInstance()
Returns the singleton instance of this
MapperFactory . |
Mapper |
getMapper(Field field)
Returns the mapper for the given field.
|
Mapper |
getMapper(Type type)
Returns a mapper for the given type.
|
void |
setDefaultMapper(Type type,
Mapper mapper)
Sets or registers the given mapper for the given type.
|
public static MapperFactory getInstance()
MapperFactory
.MapperFactory
.public Mapper getMapper(Field field)
field
- the fieldpublic Mapper getMapper(Type type)
type
- the type of field in the model classMapper
that is capable of mapping the given type.public void setDefaultMapper(Type type, Mapper mapper)
type
- the typemapper
- the mapper to use for the given typeCopyright © 2016. All rights reserved.