public class ListMapper<T extends Collection> extends Object implements Mapper<T,com.mongodb.BasicDBList>
| Constructor and Description |
|---|
ListMapper(MapperRegistry mapperRegistry,
Class<T> listType) |
| Modifier and Type | Method and Description |
|---|---|
com.mongodb.BasicDBList |
convertObject(MapperContext<T,com.mongodb.BasicDBList> context)
Convert object from one type to expected type
|
Class<com.mongodb.BasicDBList> |
getExpectedReturnType() |
Class<? extends T> |
getTypeOfObjectToConvert() |
public ListMapper(MapperRegistry mapperRegistry, Class<T> listType)
public com.mongodb.BasicDBList convertObject(MapperContext<T,com.mongodb.BasicDBList> context)
MapperconvertObject in interface Mapper<T extends Collection,com.mongodb.BasicDBList>context - Encapsulates reference to converted object and other things, which might be helpful in conversionpublic Class<? extends T> getTypeOfObjectToConvert()
getTypeOfObjectToConvert in interface Mapper<T extends Collection,com.mongodb.BasicDBList>public Class<com.mongodb.BasicDBList> getExpectedReturnType()
getExpectedReturnType in interface Mapper<T extends Collection,com.mongodb.BasicDBList>Copyright © 2016 JBoss by Red Hat. All rights reserved.