@Internal public class ReflectionGetterFactory extends java.lang.Object
FieldValueGetter
using
reflection.
Returns instances of FieldValueGetter
s backed getter methods of a pojo class. Getters
are invoked using Method.invoke(Object, Object...)
from FieldValueGetter.get(Object)
.
Caching is not handled at this level, RowFactory
should cache getters for each Schema
.
Constructor and Description |
---|
ReflectionGetterFactory() |
Modifier and Type | Method and Description |
---|---|
java.util.List<FieldValueGetter> |
generateGetters(java.lang.Class pojoClass)
Returns a list of
FieldValueGetter s. |
public java.util.List<FieldValueGetter> generateGetters(java.lang.Class pojoClass)
FieldValueGetter
s. One for each public getter of the pojoClass
.