Stay organized with collections
Save and categorize content based on your preferences.
com.google.api.server.spi.config
Annotation Type ApiTransformer
@Retention(value=RUNTIME)
public @interface ApiTransformer
An 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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-28 UTC."],[[["\u003cp\u003e\u003ccode\u003e@ApiTransformer\u003c/code\u003e is an annotation used for customizing API output through type conversion.\u003c/p\u003e\n"],["\u003cp\u003eIt can be applied to a class, globally transforming objects of that type within the App Engine application.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eApi.transformers()\u003c/code\u003e offers an alternative for per-API serialization customization, primarily for third-party classes.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003evalue\u003c/code\u003e element specifies the \u003ccode\u003eTransformer\u003c/code\u003e class responsible for performing the type conversion.\u003c/p\u003e\n"],["\u003cp\u003eThe transformer class, as designated in the \u003ccode\u003evalue\u003c/code\u003e element, must be instantiable using \u003ccode\u003eClass.newInstance()\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]