Class SerializeTranslatorFactory
- java.lang.Object
-
- com.googlecode.objectify.impl.translate.SerializeTranslatorFactory
-
- All Implemented Interfaces:
TranslatorFactory<Object,com.google.cloud.datastore.Blob>
public class SerializeTranslatorFactory extends Object implements TranslatorFactory<Object,com.google.cloud.datastore.Blob>
Loader which can load any serialized thing from a Blob.
- Author:
- Jeff Schnitzer
-
-
Constructor Summary
Constructors Constructor Description SerializeTranslatorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Translator<Object,com.google.cloud.datastore.Blob>
create(TypeKey<Object> tk, CreateContext ctx, Path path)
Create a translator for a type.
-
-
-
Method Detail
-
create
public Translator<Object,com.google.cloud.datastore.Blob> 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,com.google.cloud.datastore.Blob>
- 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.
-
-