@Retention(value=RUNTIME)
public @interface ApiTransformer
This can be used in two ways. The first is to annotate a class. This specifies that the transformer should be used to convert any objects of this type to the target type. This applies to all APIs in the current App Engine application.
The second is to use Api.transformers()
. This can be used to customize serialization of
third-party classes, but is not applied globally and is instead done per-API.
Modifier and Type | Required Element and Description |
---|---|
java.lang.Class<? extends Transformer<?,?>> |
value
The serializer class to do the type conversion.
|
public abstract java.lang.Class<? extends Transformer<?,?>> value
Class.newInstance()
.