Class ContainerTranslatorFactory
- java.lang.Object
-
- com.googlecode.objectify.impl.translate.ContainerTranslatorFactory
-
- All Implemented Interfaces:
TranslatorFactory<Object,Object>
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.
- Author:
- Jeff Schnitzer
-
-
Constructor Summary
Constructors Constructor Description ContainerTranslatorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Translator<Object,Object>
create(TypeKey<Object> tk, CreateContext ctx, Path path)
Create a translator for a type.
-
-
-
Method Detail
-
create
public Translator<Object,Object> create(TypeKey<Object> tk, CreateContext ctx, Path path)
Description copied from interface:TranslatorFactory
Create a translator for a type.- Specified by:
create
in interfaceTranslatorFactory<Object,Object>
- Parameters:
tk
- defines the type which is to be translatedpath
- is where this type was discovered, important for logging and exceptions- Returns:
- null if this factory does not know how to deal with that situation.
-
-