Annotation Interface GrpcInterceptorBinding


@Target(ANNOTATION_TYPE) @Retention(RUNTIME) @Documented public @interface GrpcInterceptorBinding
Specifies that an annotation type is a gRPC interceptor binding type. A gRPC Interceptor binding is used to specify the binding of a gRPC client or server interceptor to target gRPC service and methods.

The annotation type that is marked as a binding must be applied to a client of server gRPC interceptor implementation class (marked with the jakarta.interceptor.Interceptor @Interceptor annotation to associate that annotation with an interceptor. The annotation may then be applied instead of, or in addition to, the jakarta.interceptor.Interceptors @Interceptors annotation to specify what interceptors are attached to the class or method.

The associated annotation type must be associated only with TYPEs and/or METHODs.