@Retention(value=RUNTIME)
public @interface ApiSerializer
This can be used in two ways. The first is to annotated a class, specifying the serializer property (the target is ignored and assumed to be the class). This specifies that the serializer 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 the serializers property of the Api
annotation. 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 Serializer<?,?>> |
value
The serializer class to do the type conversion.
|
public abstract java.lang.Class<? extends Serializer<?,?>> value
Class.newInstance()
.