public class TranslateTranslatorFactory extends Object implements TranslatorFactory<Object,Object>
Translator factory which lets users define a custom translator for a field.
Constructor and Description |
---|
TranslateTranslatorFactory(boolean earlyOnly) |
Modifier and Type | Method and Description |
---|---|
Translator<Object,Object> |
create(TypeKey<Object> tk,
CreateContext ctx,
Path path)
Create a translator for a type.
|
public TranslateTranslatorFactory(boolean earlyOnly)
earlyOnly
- determines whether this instance ignores @Translate annotations with early=falsepublic Translator<Object,Object> create(TypeKey<Object> tk, CreateContext ctx, Path path)
TranslatorFactory
create
in interface TranslatorFactory<Object,Object>
tk
- defines the type which is to be translatedpath
- is where this type was discovered, important for logging and exceptionsCopyright © 2014. All rights reserved.