Make spring-cloud-bindings API extensible & reusable

Ouverte
#52 3 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
2/5
Temps estimé
1-3 heures
Accessibilité débutants
35/100
Type d'issue
Refactorisation
Clarté
Plutôt claire
Activité
À l'abandon
Stack technique
java
Domaine
backend

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.

Langage dominant
Java
Étoiles
50
Forks
33
Merge moyen
6 j 2 h
PR mergées (30 j)
2

Préparer son environnement

Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de spring-cloud/spring-cloud-bindings

Toutes les issues de spring-cloud/spring-cloud-bindings

Issues similaires

Plus d'issues Java

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.