Make spring-cloud-bindings API extensible & reusable

Aperta
#52 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
35/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
java
Ambito
backend

Direzione di ricerca

The payload names two targets: the package-private Guards and MapMapper types, which need public visibility, and the final modifier on the Binding and Bindings classes. Start by locating those four declarations in the spring-cloud-bindings source tree and checking how BindingsPropertiesProcessor uses them. Done means the types are public and non-final, with the existing test suite still passing. The issue has three comments and no linked pull request, and its last comment is about 1712 days old, so confirm with maintainers that the change is still wanted before starting.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

question

As it stands currently, this project offers a nice API, but is not quite a Framework that others can easily reuse and extend.

This stems from 2 noticeable limitations:

  1. Both the Guards and MapMapper types are package-private, making them difficult to reuse in external implementations of the BindingsPropertiesProcessor interface for convenience.

  2. The Binding and Bindings classes really should not be final as it makes them difficult to mock, or at least spy on in a true Unit Test.

Making these changes will make the project more Framework-like, being 1) reusable and 2) "open for extension, but closed for modification".

Thank you for the consideration.

Lingua principale
Java
Stelle
50
Fork
33
Merge medio
6g 2h
PR unite (30g)
2

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 spring-cloud/spring-cloud-bindings

Tutte le issue di spring-cloud/spring-cloud-bindings

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.