# ApiReference

com.google.api.server.spi.config

## Annotation Type ApiReference

-

  *** ** * ** ***

  <br />

  ```
  @Retention(value=RUNTIME)
   @Target(value=TYPE)
  public @interface ApiReference
  ```
  Annotation to specify that the annotated class should use the same [`Api`](https://docs.cloud.google.com/endpoints/docs/frameworks/java/javadoc/com/google/api/server/spi/config/Api.html "annotation in com.google.api.server.spi.config") configuration information as the referenced class. This referenced configuration is used instead of any configuration inherited from [`Api`](https://docs.cloud.google.com/endpoints/docs/frameworks/java/javadoc/com/google/api/server/spi/config/Api.html "annotation in com.google.api.server.spi.config") annotations or other `ApiReference` annotations on super classes. If a single class is annotated with both [`Api`](https://docs.cloud.google.com/endpoints/docs/frameworks/java/javadoc/com/google/api/server/spi/config/Api.html "annotation in com.google.api.server.spi.config") and [`ApiReference`](https://docs.cloud.google.com/endpoints/docs/frameworks/java/javadoc/com/google/api/server/spi/config/ApiReference.html "annotation in com.google.api.server.spi.config") annotations, configuration is first retrieved using the [`ApiReference`](https://docs.cloud.google.com/endpoints/docs/frameworks/java/javadoc/com/google/api/server/spi/config/ApiReference.html "annotation in com.google.api.server.spi.config") annotation and is then overridden with configuration from the [`Api`](https://docs.cloud.google.com/endpoints/docs/frameworks/java/javadoc/com/google/api/server/spi/config/Api.html "annotation in com.google.api.server.spi.config") annotation.
-
  -

    ### Required Element Summary

    | Modifier and Type | Required Element and Description |
    |---|---|
    | `java.lang.Class<?>` | `https://docs.cloud.google.com/endpoints/docs/frameworks/java/javadoc/com/google/api/server/spi/config/ApiReference.html#value--` The class to which this ApiReference annotation will act as a reference. |
    [Required Elements]

-
  -

    ### 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`](https://docs.cloud.google.com/endpoints/docs/frameworks/java/javadoc/com/google/api/server/spi/config/Api.html "annotation in com.google.api.server.spi.config") annotation or another [`ApiReference`](https://docs.cloud.google.com/endpoints/docs/frameworks/java/javadoc/com/google/api/server/spi/config/ApiReference.html "annotation in com.google.api.server.spi.config") annotation.