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 2024-02-15 UTC."],[[["`@ApiTransformer` is an annotation used for customizing API output through type conversion."],["It can be applied to a class, globally transforming objects of that type within the App Engine application."],["`Api.transformers()` offers an alternative for per-API serialization customization, primarily for third-party classes."],["The `value` element specifies the `Transformer` class responsible for performing the type conversion."],["The transformer class, as designated in the `value` element, must be instantiable using `Class.newInstance()`."]]],[]]