public class AnnotationGlobalServerInterceptorConfigurer extends Object implements GlobalServerInterceptorConfigurer
annotated
global ServerInterceptor
s.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 ServerInterceptor s 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 ServerInterceptor
s from the
application context.public void configureServerInterceptors(List<io.grpc.ServerInterceptor> interceptors)
GlobalServerInterceptorConfigurer
configureServerInterceptors
in interface GlobalServerInterceptorConfigurer
interceptors
- A mutable list of server interceptors to configure.