public class AnnotationGlobalServerInterceptorConfigurer extends Object implements GlobalServerInterceptorConfigurer
annotated global ServerInterceptors.| Constructor and Description |
|---|
AnnotationGlobalServerInterceptorConfigurer(ApplicationContext applicationContext)
Creates a new AnnotationGlobalServerInterceptorConfigurer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
configureServerInterceptors(List<io.grpc.ServerInterceptor> interceptors)
Configures the given list of server interceptors, possibly adding new elements, removing unwanted elements, or
reordering the existing ones.
|
protected Map<String,io.grpc.ServerInterceptor> |
getServerInterceptorBeans()
Helper method used to get the
GrpcGlobalServerInterceptor annotated ServerInterceptors from the
application context. |
public AnnotationGlobalServerInterceptorConfigurer(ApplicationContext applicationContext)
applicationContext - The application context to fetch the GrpcGlobalServerInterceptor annotated
ServerInterceptor beans from.protected Map<String,io.grpc.ServerInterceptor> getServerInterceptorBeans()
GrpcGlobalServerInterceptor annotated ServerInterceptors from the
application context.public void configureServerInterceptors(List<io.grpc.ServerInterceptor> interceptors)
GlobalServerInterceptorConfigurerconfigureServerInterceptors in interface GlobalServerInterceptorConfigurerinterceptors - A mutable list of server interceptors to configure.