I have Java 8 application with Spring Boot and Maven. I'm planning to add a new library, however, I want to make it available to replace the library by users.
My first thought was to make a common wrapper, which will be set in API module. Then there would be implementation module. All calls in the whole application would be made using the API only, hiding the implementation.
Recently I've learnt about Service Provider Interface as the proper way to introduce different implementations.
My questions are:
- Should I use SPI design? If so, how to make it work with Maven?
- Spring Boot is strongly tangled with my application. Is there a way to make it better with that framework?
- Is there any other way, maybe better, to solve the problem with implementation independent application?
Aucun commentaire:
Enregistrer un commentaire