com.google.api.server.spi.config
Annotation Type ApiTransformer
- 
 
 @Retention(value=RUNTIME) public @interface ApiTransformerAn annotation for customizing API output by simple type conversion.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.
- 
- 
Required Element SummaryRequired Elements Modifier and Type Required Element and Description java.lang.Class<? extends Transformer<?,?>>valueThe serializer class to do the type conversion.
 
- 
- 
- 
Element Detail- 
valuepublic abstract java.lang.Class<? extends Transformer<?,?>> value The serializer class to do the type conversion. It must be possible to create this class usingClass.newInstance().
 
- 
 
-