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.
本頁內容對您是否有任何幫助?請提供意見:

傳送您對下列選項的寶貴意見...

這個網頁
Cloud Endpoints Frameworks for App Engine
需要協助嗎?請前往我們的支援網頁