Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Expose Server.SERVER_CONTEXT_KEY so that users can implement a Server

Aperta
#12,402 4 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@shivaspeaks ci sta già lavorando.

Dal 3/12/2025.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

api-review enhancement

It seems like a valid goal to want to implement (extend) a Server - there are only a few implementations in grpc-java and I can imagine quite a few alternatives that I wouldn't expect the grpc-java community to want to support. But if you try it you find that the reflection service doesn't work (and therefore I assume potentially other services) because it accesses the current Server via the Server.SERVER_CONTEXT_KEY. If you don't have access to that key you can't set up the context for the reflection service. There is an escape hatch via InternalServer.SERVER_CONTEXT_KEY but that is clearly documented as "not for use outside grpc-java" and annotated with @Internal.

Lingua principale
Java
Stelle
12.1k
Fork
4k
Merge medio
2g 6h
PR unite (30g)
26

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di grpc/grpc-java

Tutte le issue di grpc/grpc-java

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.