public class ContainerTranslatorFactory extends Object implements TranslatorFactory<Object,Object>
Translator factory which lets users create @Container properties. This is a neat orthogonality in the translation system; @Container properties are just like any other translated property, except that the value is pulled out of the load context instead of the datastore node.
| Constructor and Description |
|---|
ContainerTranslatorFactory() |
| Modifier and Type | Method and Description |
|---|---|
Translator<Object,Object> |
create(TypeKey<Object> tk,
CreateContext ctx,
Path path)
Create a translator for a type.
|
public Translator<Object,Object> create(TypeKey<Object> tk, CreateContext ctx, Path path)
TranslatorFactorycreate 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 © 2016. All rights reserved.