public class AnnotationGlobalClientInterceptorConfigurer extends Object implements GlobalClientInterceptorConfigurer
annotated global ClientInterceptors.| Constructor and Description |
|---|
AnnotationGlobalClientInterceptorConfigurer(ApplicationContext applicationContext)
Creates a new AnnotationGlobalClientInterceptorConfigurer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
configureClientInterceptors(List<io.grpc.ClientInterceptor> interceptors)
Configures the given list of client interceptors, possibly adding new elements, removing unwanted elements, or
reordering the existing ones.
|
protected Map<String,io.grpc.ClientInterceptor> |
getClientInterceptorBeans()
Helper method used to get the
GrpcGlobalClientInterceptor annotated ClientInterceptors from the
application context. |
public AnnotationGlobalClientInterceptorConfigurer(ApplicationContext applicationContext)
applicationContext - The application context to fetch the GrpcGlobalClientInterceptor annotated
ClientInterceptor beans from.protected Map<String,io.grpc.ClientInterceptor> getClientInterceptorBeans()
GrpcGlobalClientInterceptor annotated ClientInterceptors from the
application context.public void configureClientInterceptors(List<io.grpc.ClientInterceptor> interceptors)
GlobalClientInterceptorConfigurerconfigureClientInterceptors in interface GlobalClientInterceptorConfigurerinterceptors - A mutable list of client interceptors to configure.