Stay organized with collections
Save and categorize content based on your preferences.
com.google.api.server.spi.config
Annotation Type ApiReference
@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface ApiReference
Annotation to specify that the annotated class should use the same Api configuration
information as the referenced class. This referenced configuration is used instead of any
configuration inherited from Api annotations or other ApiReference annotations
on super classes.
If a single class is annotated with both Api and ApiReference annotations,
configuration is first retrieved using the ApiReference annotation and is then overridden
with configuration from the Api annotation.
The class to which this ApiReference annotation will act as a reference.
Element Detail
value
public abstract java.lang.Class<?> value
The class to which this ApiReference annotation will act as a reference. The referenced class
or an inherited superclass of the referenced class must have API configuration provided
from an Api annotation or another ApiReference annotation.
[[["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."],[[["`ApiReference` is an annotation used to specify that a class should use the same `Api` configuration as a referenced class."],["The referenced `Api` configuration overrides any `Api` or `ApiReference` configurations inherited from superclasses."],["If a class has both `Api` and `ApiReference` annotations, the `ApiReference` configuration is used first and then overridden by the `Api` configuration."],["The `value` element of `ApiReference` specifies the class to which the annotation refers, which must have an `Api` or another `ApiReference` annotation."]]],[]]