Annotation Interface GrpcClientBean


@Target(TYPE) @Repeatable(GrpcClientBeans.class) @Retention(RUNTIME) public @interface GrpcClientBean
Annotation that can be added to Configuration classes to add a GrpcClient bean to the ApplicationContext.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The type of the bean to create.
    The client definition used to create the channel and grab all properties.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The name of the bean to create.
  • Element Details

    • clazz

      Class<?> clazz
      The type of the bean to create.
      Returns:
      The type of the bean.
    • client

      GrpcClient client
      The client definition used to create the channel and grab all properties.
      Returns:
      The client definition to use.
    • beanName

      String beanName
      The name of the bean to create. If empty, a name will be generated automatically based on the bean class and the client name.
      Returns:
      The optional name of the bean.
      Default:
      ""