public class EmbedClassTranslatorFactory<T> extends Object implements TranslatorFactory<T>
Translator which can map whole embedded classes. This is appropriate to both class fields and the component type of collection fields.
Constructor and Description |
---|
EmbedClassTranslatorFactory() |
public Translator<T> create(Path path, Property property, Type type, CreateContext ctx)
create
in interface TranslatorFactory<T>
path
- current path to this part of the tree, important for logging and exceptionsproperty
- is the property we are inspecting to create a translator fortype
- is the generic type of the field (or field component). For example, examining a field of type
ListCopyright © 2014. All rights reserved.