public class AnnotationGlobalClientInterceptorConfigurer extends Object implements GlobalClientInterceptorConfigurer
annotated
global ClientInterceptor
s.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 ClientInterceptor s 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 ClientInterceptor
s from the
application context.public void configureClientInterceptors(List<io.grpc.ClientInterceptor> interceptors)
GlobalClientInterceptorConfigurer
configureClientInterceptors
in interface GlobalClientInterceptorConfigurer
interceptors
- A mutable list of client interceptors to configure.