Make spring-cloud-bindings API extensible & reusable

Abierto
#52 3 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
35/100
Tipo de issue
Refactorización
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
java
Área
backend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Java
Estrellas
50
Forks
33
Merge medio
6 d 2 h
PR fusionados (30 d)
2

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de spring-cloud/spring-cloud-bindings

Todos los issues de spring-cloud/spring-cloud-bindings

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.