public abstract class ValueTranslatorFactory<P,D> extends Object implements TranslatorFactory<P,D>
Modifier | Constructor and Description |
---|---|
protected |
ValueTranslatorFactory(Class<? extends P> pojoType) |
Modifier and Type | Method and Description |
---|---|
Translator<P,D> |
create(TypeKey<P> tk,
CreateContext ctx,
Path path)
Create a translator for a type.
|
protected abstract ValueTranslator<P,D> |
createValueTranslator(TypeKey<P> tk,
CreateContext ctx,
Path path)
Create a translator, knowing that we have the appropriate type.
|
public final Translator<P,D> create(TypeKey<P> tk, CreateContext ctx, Path path)
TranslatorFactory
create
in interface TranslatorFactory<P,D>
tk
- defines the type which is to be translatedpath
- is where this type was discovered, important for logging and exceptionsprotected abstract ValueTranslator<P,D> createValueTranslator(TypeKey<P> tk, CreateContext ctx, Path path)
tk
- type is guaranteed to erase to something assignable to ClassCopyright © 2016. All rights reserved.