Annotation Type Client.Import

Enclosing class:
Client

@Target({TYPE,PACKAGE}) @Retention(RUNTIME) public static @interface Client.Import
Specify @Client.Import on a package or class to refer to the client interface we want to generate.

 @Client.Import(types = OtherApi.class)
 package org.example;

 
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Class<?>[]
    Client interface types that we want to generate HTTP clients for.
  • Element Details

    • types

      Class<?>[] types
      Client interface types that we want to generate HTTP clients for.