ApiReference

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.
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element and Description
      java.lang.Class<?> value
      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.