@Target(value=TYPE) @Retention(value=RUNTIME) @Documented @Service public @interface GrpcService
BindableService
(GrpcService-ImplBase).Modifier and Type | Optional Element and Description |
---|---|
String[] |
interceptorNames
A list of
ServerInterceptor beans that should be applied to only this service. |
Class<? extends ServerInterceptor>[] |
interceptors
A list of
ServerInterceptor classes that should be applied to only this service. |
public abstract Class<? extends ServerInterceptor>[] interceptors
ServerInterceptor
classes that should be applied to only this service. If a bean of the given
type exists, it will be used; otherwise a new instance of that class will be created via no-args constructor.
Note: These interceptors will be applied after the global interceptors. But the interceptors that were applied last, will be called first.
public abstract String[] interceptorNames
ServerInterceptor
beans that should be applied to only this service.
Note: These interceptors will be applied after the global interceptors and the interceptor classes. But the interceptors that were applied last, will be called first.