Package net.devh.boot.grpc.client.inject
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
Modifier and TypeRequired ElementDescriptionClass<?>
The type of the bean to create.The client definition used to create the channel and grab all properties. -
Optional Element Summary
-
Element Details
-
clazz
Class<?> clazzThe type of the bean to create.- Returns:
- The type of the bean.
-
client
GrpcClient clientThe client definition used to create the channel and grab all properties.- Returns:
- The client definition to use.
-
-
-
beanName
String beanNameThe 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:
- ""
-