core-java
core-java copied to clipboard
Provide an API to add interceptors to the default Spine services
Currently, there is no way to attach ServerInterceptor
's directly to the standard Spine services (e.g., QueryService
, CommandService
, SubscriptionService
) during building the io.spine.server.Server
.
Current Workaround
- Build the
io.spine.server.Server
with bounded contexts. - Extract the configured Spine services.
- Add Spine services to the
io.grpc.Server
wrapping the necessary ones with interceptors.